]> Nutra Git (v1) - gamesguru/git-remote-gcrypt.git/commitdiff
Use $1, $2 instead of $@ here
authorroot <root@localhost>
Fri, 1 Feb 2013 05:01:36 +0000 (09:01 +0400)
committerroot <root@localhost>
Fri, 1 Feb 2013 05:01:36 +0000 (09:01 +0400)
If found a bug in mksh, where it would not split "$@" if IFS is null
(reported).

git-remote-gcrypt

index 3ae2eb2c79fc08f4c64628241d4dffb4a53ceddd..5423c0b590b2fb3966d9fa6615aa467150a45a91 100755 (executable)
@@ -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://*}"; }