nomsu/lib/shell/init.nom

13 lines
276 B
Plaintext
Raw Normal View History

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