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

2014-05-15 Thread Elia Pinto
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 should be written as: test $1 test $2 But note that, in test, -a

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 gitter.spi...@gmail.com 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

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 gitter.spi...@gmail.com 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 should be