So in the first case test returns zero, which is correct for the current
value of MYVAR, but in the second and third cases it remains returning zero,
which seems wrong to me. I also tested with -z, which seems to be working
right in all cases. BTW, [ -n '' ] (i.e. literal string, no expansion) works
correctly too.
Any thoughts?
regards,
cl.
PS. This is run from bash 2.02 on Solaris, but it looks the same in 1.14 on
a linux box and in 2.04 on Win98 too (the Cygwin build).
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.