Re: SOLVED(?): [expert] test command

2002-12-22 Thread ath1410
Solved! I should have read man bash pages! Options are one of the Arguments. test arg1 arg2 arg3 .. So, $test -n or $test -z is just like $test abc. -n, -z, or abc is handled as arg1 and as 'a string'. Then test deos not think that -z or -n is an option stateme

Re: SOLVED(?): [expert] test command

2002-12-21 Thread milosh
wuha, i am sorry to say that, but what i wrote was mostly wrong :( it's just too simple. i didn't saw cause i assumed to deal with a strange situation. but this is just normal behaviour. you wrote: > $echo $? returns 0 after these test commands. > > $test -z "" > $test -z first of all. my biggest