From b258f43857f94e2eb35fd2a8c3bc41451772666f Mon Sep 17 00:00:00 2001 From: Tim Vaughan Date: Sun, 23 Oct 2016 14:28:05 +1300 Subject: [PATCH] Fixed bug in executable. --- bin/forth.jl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.20.1