On Fri, 20 Dec 2002 18:18:10 +0900
"ath1410" <[EMAIL PROTECTED]> wrote:

> Tks for reply.
> 
> I understand the way $test -z "" returns 0 and $test -n "" returns 1.
> 
> What's puzzling me here is this.
> 
> $test -z (there is no space after -z, no argment) returns 0 which means 'test 
>command thinks no argment equals to the
> empty string'.
> 
> However, $test -n (no space after, no argment) return 0 which
> means 'test command in this case thinks no argment equals to
> NO-empty string'.
> 
> When no argment is given, why test command thinks differenly
> depending on the options -z and -n. 
>  
> Can you help??
> 

this page can help you:
http://tldp.org/LDP/abs/html/testconstructs.html

bye
jipe

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to