From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] cmd_nvedit.c: Add env exists command
Date: Fri, 8 Nov 2013 17:29:19 -0500 [thread overview]
Message-ID: <20131108222919.GA5925@bill-the-cat> (raw)
In-Reply-To: <20131023000734.GA18309@gmail.com>
On Tue, Oct 22, 2013 at 07:07:34PM -0500, Andrew Ruder wrote:
> env exists is a way to test (in hush) if an environment variable
> exists. A workaround existed using printenv but this new command
> doesn't require all the stdout/stderr redirection to prevent
> printing information to the screen.
>
> Example:
> $ set testexists 1
> $ env exists testexists && echo "yes"
> yes
> $ env exists testexists || echo "no"
> $ set testexists
> $ env exists testexists && echo "yes"
> $ env exists testexists || echo "no"
> no
> $
>
> Signed-off-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131108/1007c3d8/attachment.pgp>
prev parent reply other threads:[~2013-11-08 22:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-23 0:07 [U-Boot] [PATCH] cmd_nvedit.c: Add env exists command Andrew Ruder
2013-10-23 13:55 ` James Chargin
2013-10-23 14:30 ` Andrew Ruder
2013-11-08 22:29 ` Tom Rini [this message]
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=20131108222919.GA5925@bill-the-cat \
--to=trini@ti.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