On Thu, Dec 19, 2002 at 12:44:30PM +0900, ath1410 wrote: > $test -z "" this tests whether the string is empty. in this example it is, therefor exit code 0.
> > But it returns different value after followings. > > $test -n "" -- echo$? returns 1 > $test -n -- " " 0 this tests whether the string is NOT empty. the first one is empty, so exit code is 1. the second one isn't empty. i guess that you think that spaces count as empty strings, but a space is a character as everyone (ascii 039), therefor your string isnt empty and exit code is 0. okey? have phun;) miLosh -- DONT ATTACK IRAQ !!! this message was sent by: +------------------------------+ |.::|[ The pleXus Network ]|::.| +------------------------------+ www: plexus.shacknet.nu | ftp: plexus.shacknet.nu +-------------------+ irc: plexus.shacknet.nu:6667 channel: #nocturne | +--------------------------------------------------+-----------+ pub 1024D/C944D699 miLosh (pleXus) <[EMAIL PROTECTED]> \_____ Key fingerprint = 18FB 24BA 77A8 813F 6A8C F67B C08C 5A76 C944 D699 \ +----------------------------------------------------------------------+
msg63051/pgp00000.pgp
Description: PGP signature