13 lines
276 B
Plaintext
13 lines
276 B
Plaintext
#
|
|
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
|