nomsu/lib/shell/init.nom
Bruce Hill bf37295fae Updating to v6.15, which includes "external (...)" instead of separate
'externally' versions of stuff, and some auto-formatting.
2019-01-15 15:54:28 -08:00

13 lines
301 B
Plaintext

#
This file defines some actions for running shell commands.
external:
(=sh $cmd) means:
lua> ("
local result = io.popen(\$cmd)
local contents = result:read("*a")
result:close()
return contents
")
$(sh> $) = $os.execute