Solved! I should have read man bash pages!

Options are one of the Arguments.

test arg1 arg2 arg3 ......

So,

$test -n<CR> or $test -z<CR> is just like $test abc<CR>.
-n, -z, or abc is handled as arg1 and as 'a string'. Then
test deos not think that -z or -n is an option statement.
The arg1 (-z or -a or -*) can be considered option only if
test has arg2. Without arg2, -z or -n or -* should be handled
just like abc. 

1 argument
The expression is true if and only if the argument is not null.

Then $test -*;echo$? returns 0(true) and $test "";echo$? returns
1(false).

And in case of no argment which is just $test<CR>, man bash
says 
0 argment - The expression is false.

am i right??

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+---------+ * Get your own Jmail account.|URL= http://www.jmail.co.jp
|--jmail--| * Get your own home page.|URL= http://www.servance.jp
+---------+ * Get your own domain.|URL= http://domaintorou.com/
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Reply via email to