[U-Boot-Users] test variable existence in hush
Andreas Engel
Andreas.Engel at marconi.com
Mon Aug 22 12:57:58 CEST 2005
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
More information about the U-Boot
mailing list