X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=forth.jl.git;a=blobdiff_plain;f=bin%2Fforth.jl;fp=bin%2Fforth.jl;h=f5218ecdb4c5f5b69fa01233b64f2e9a13df493a;hp=d2b91ea0600e4acc9ec2f78a0a3e5a85539f8c57;hb=b258f43857f94e2eb35fd2a8c3bc41451772666f;hpb=1714c4d87674bc23da83a5546321db63591f4c5b diff --git a/bin/forth.jl b/bin/forth.jl index d2b91ea..f5218ec 100755 --- a/bin/forth.jl +++ b/bin/forth.jl @@ -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