
22 Aug
2005
22 Aug
'05
12:57 p.m.
Hi,
can anyone confirm that this is a bug in the hush shell: both
test -n "$foo" && echo yes
and
test -z "$foo" && echo yes
result in nothing echoed if foo is not defined. If, on the other hand, foo is defined to a string containing blanks, both commands will echo yes.
Is there another way to check the existence of a variable?
Regards, Andreas Engel