From: Tim Vaughan Date: Sun, 23 Oct 2016 01:28:05 +0000 (+1300) Subject: Fixed bug in executable. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=b258f43857f94e2eb35fd2a8c3bc41451772666f;p=forth.jl.git Fixed bug in executable. --- 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