Fixed bug in executable.
authorTim Vaughan <tgvaughan@gmail.com>
Sun, 23 Oct 2016 01:28:05 +0000 (14:28 +1300)
committerTim Vaughan <tgvaughan@gmail.com>
Sun, 23 Oct 2016 01:28:05 +0000 (14:28 +1300)
bin/forth.jl

index d2b91ea..f5218ec 100755 (executable)
@@ -1,3 +1,7 @@
-#!/bin/sh
+#!/bin/bash
 
-exec julia -e "import forth; forth.run(\"$1\")"
+if [ -z "$1" ]; then 
+    exec julia -e "import forth; forth.run()"
+else
+    exec julia -e "import forth; forth.run(\"$1\")"
+fi