public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] test variable existence in hush
@ 2005-08-22 10:57 Andreas Engel
  2005-08-22 12:21 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Engel @ 2005-08-22 10:57 UTC (permalink / raw)
  To: u-boot

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 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-22 13:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-22 10:57 [U-Boot-Users] test variable existence in hush Andreas Engel
2005-08-22 12:21 ` Wolfgang Denk
2005-08-22 13:01   ` Andreas Engel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox