From c1c32688a4afc43f6addb99b8b5fa878944a70e3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 14 Jan 2019 15:42:48 -0800 Subject: Overhaul in progress, mostly working. Moved all the nomsu packages into lib/, including core/*. Changes to how nomsu environments and importing work. --- lib/shell/init.nom | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib/shell/init.nom (limited to 'lib/shell/init.nom') 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 -- cgit v1.2.3