aboutsummaryrefslogtreecommitdiff
path: root/lib/shell
diff options
context:
space:
mode:
Diffstat (limited to 'lib/shell')
-rw-r--r--lib/shell/init.nom12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/shell/init.nom b/lib/shell/init.nom
new file mode 100644
index 0000000..6a8970e
--- /dev/null
+++ b/lib/shell/init.nom
@@ -0,0 +1,12 @@
+#
+ 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