Andrew Ruder 88733e2c65 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>
2013-11-08 09:38:24 -05:00
..
2013-04-01 16:33:52 -04:00
2013-10-17 07:20:24 +02:00
2013-04-01 16:33:52 -04:00
2011-04-08 00:44:27 -04:00
2013-08-16 13:45:15 -04:00
2013-05-31 17:12:03 -05:00
2013-11-04 11:24:22 -05:00
2012-08-09 23:39:18 +02:00
2013-04-01 16:33:52 -04:00
2013-04-01 16:33:52 -04:00
2013-08-06 23:58:43 +05:30
2011-12-07 08:41:22 +01:00
2013-09-20 10:30:54 -04:00
2013-09-20 10:30:54 -04:00
2013-09-20 10:30:54 -04:00
2010-01-18 00:23:00 +01:00
2011-10-22 01:13:35 +02:00