Hi,
is it a bug of /bin/test? Please see this output:
1)
---------------------------------------------------
$> which test
/bin/test
$> casa=
$> /usr/bin/test -n $casa && echo yes || echo no
yes
$> /usr/bin/test $casa && echo yes || echo no
no
----------------------------------------------------
but, from test(1):
...
-n STRING
the length of STRING is nonzero
STRING equivalent to -n STRING
...
2)
again (with the same initializing of casa):
---------------------------------------------------
$> /usr/bin/test -n $casa && echo yes || echo no
yes
$> /usr/bin/test -z $casa && echo yes || echo no
yes
---------------------------------------------------
but, from test(1):
...
-n STRING
the length of STRING is nonzero
...
-z STRING
the length of STRING is zero
best regards,
Emanuele
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils