[Orca-users] orca 0.27 make error on Solaris 9

Dmitry Berezin dberezin at surfside.rutgers.edu
Tue Aug 31 06:42:15 PDT 2004


Blair,

I guess you are right - it's not reliable. Even on Solaris it works
differently with different shells.
Forget it, bad idea :-(

  -Dmitry.

> 
> 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
> 
> --
> Blair Zajac <blair at orcaware.com>
> Plots of your system's performance - http://www.orcaware.com/orca/





More information about the Orca-users mailing list