nomsu/lib/shell/init.nom

13 lines
301 B
Plaintext
Raw Normal View History

#
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