From: Andreas Engel <Andreas.Engel@marconi.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] test variable existence in hush
Date: Mon, 22 Aug 2005 12:57:58 +0200 [thread overview]
Message-ID: <20050822125758.00001da8@idefix> (raw)
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
next reply other threads:[~2005-08-22 10:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-22 10:57 Andreas Engel [this message]
2005-08-22 12:21 ` [U-Boot-Users] test variable existence in hush Wolfgang Denk
2005-08-22 13:01 ` Andreas Engel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050822125758.00001da8@idefix \
--to=andreas.engel@marconi.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox