Fixed bug in executable.
[forth.jl.git] / 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