diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/fnl.sh | 2 | ||||
-rw-r--r-- | bin/shb.sh | 6 | ||||
-rw-r--r-- | bin/xgo.sh | 1 |
3 files changed, 5 insertions, 4 deletions
@@ -3,7 +3,7 @@ # Check we have at least one argument if [ "$#" -eq 0 ] ; then printf >&2 'fnl: Command needed\n' - return 2 + exit 2 fi # Create a temporary directory; note that we *don't* clean it up on exit @@ -1,10 +1,10 @@ # Use PATH to build a shebang for a script given on stdin self=shb -# Need at least two arguments +# Need at least one argument if [ "$#" -lt 1 ] ; then printf >&2 '%s: Need interpreter command\n' "$self" - exit 1 + exit 2 fi # First argument is the name of the interpreter @@ -23,4 +23,4 @@ set -- "$intp" "$@" printf '#!%s\n' "$*" # Emit the rest of the input -cat +cat - @@ -3,6 +3,7 @@ # Check arguments if [ "$#" -eq 0 ] ; then printf >&2 'xgo: At least one URL required\n' + exit 2 fi # Iterate over the URL arguments |