So sprach Xavier Bertou am Tue, Feb 27, 2001 at 08:55:21AM +0100:
> defined it will expand in [ -n ] which is true. So please, correct all
> these damn [ -n $VAR ] into [ -n "$VAR" ] which expands in [ -n "" ]
> which is false.

Or use 

[ x"$var" = "x" ]; then echo var is empty; fi

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:       http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die guenstige Art an Linux Distributionen zu kommen
                Uptime: 1 day 9 hours 1 minute

Reply via email to