Use $1, $2 instead of $@ here

If found a bug in mksh, where it would not split "$@" if IFS is null
(reported).
This commit is contained in:
root 2013-02-01 09:01:36 +04:00
parent 786dc939d4
commit bb03601d73

View file

@ -48,7 +48,7 @@ echo_die() { echo_info "$@" ; exit 1; }
isnull() { case "$1" in "") return 0;; *) return 1;; esac; }
isnonnull() { ! isnull "$1"; }
iseq() { case "$1" in "$2") return 0;; *) return 1;; esac; }
isnoteq() { ! iseq "$@"; }
isnoteq() { ! iseq "$1" "$2"; }
negate() { ! "$@"; }
isurl() { isnull "${2%%$1://*}"; }