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
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
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
3 matches
Mail list logo