[Orca-users] orca 0.27 make error on Solaris 9
Adam R Prato
arp at pra.to
Mon Aug 30 16:20:40 PDT 2004
* Blair Zajac wrote on 30 Aug 2004:
> This little test
>
> a=" "
> if test ! -z $a; then
> echo not empty
> fi
>
> works fine using /bin/sh on Linux, but with Solaris' /bin/sh, I get this:
>
> test.sh: test: argument expected
>
> so it doesn't work. I think the echo is the most portable, easy way to
> solve this problem.
>
> Regards,
> Blair
if test ! -z "$a"; then
echo not empty
fi
That should work everywhere.
Regards,
Adam
More information about the Orca-users
mailing list