Searched hist:"88733 e2c65b1b118e6e1a942d62a48ce62a5ea40" (Results 1 – 1 of 1) sorted by relevance
/openbmc/u-boot/ |
H A D | README | 88733e2c65b1b118e6e1a942d62a48ce62a5ea40 Tue Oct 22 19:07:34 CDT 2013 Andrew Ruder <andrew.ruder@elecsyscorp.com> cmd_nvedit.c: Add env exists command
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>
|