Re: [PATCH 01/10] check_bindir: don't use the -a or -o option with the test command

2014-05-15 Thread Junio C Hamano
Elia Pinto writes: > Even though POSIX.1 lists -a/-o as options to "test", they are > marked "Obsolescent XSI". Scripts using these expressions > should be converted as follow: > > test "$1" -a "$2" > > should be written as: > > test "$1" && test "$2" > > Likewise > > test "$1" -o "$2" > > shoul

Re: [PATCH 01/10] check_bindir: don't use the -a or -o option with the test command

2014-05-15 Thread Matthieu Moy
Elia Pinto writes: >$ test -z "$x" -a a = b >bash: test: too many arguments > > because it groups "test -n = -a" and is left with "a = b". I guess you meant -z, not -n. -- Matthieu Moy http://www-verimag.imag.fr/~moy/ -- To unsubscribe from this list: send the line "unsubscribe git" in