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