Re: bug in /bin/test ?

2007-08-25 Thread Emanuele Tomasi
Quoting Brian Dessent <[EMAIL PROTECTED]>: effectively swallowing it ... test program does not see any STRING argument at all. Ok, thanks for your fast answer Brian. Regards, Emanuele This message was sent using IMP, the In

Re: bug in /bin/test ?

2007-08-25 Thread Brian Dessent
Emanuele Tomasi wrote: > $> /usr/bin/test -n $casa && echo yes || echo no > yes > > $> /usr/bin/test $casa && echo yes || echo no > no > > $> /usr/bin/test -z $casa && echo yes || echo no > yes I think you may not be understanding the fact that the shell expands $casa into the empty string befor

bug in /bin/test ?

2007-08-25 Thread Emanuele Tomasi
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 --