From 300b26d1d859c27e40961aef006aefbe30b8d848 Mon Sep 17 00:00:00 2001
From: Gregory Nutt
CMD | -w/o CONFIG_NSH_VARS |
- w/ CONFIG_NSH_VARS |
+ CMD | +w/o CONFIG_NSH_VARS |
+ w/ CONFIG_NSH_VARS |
set <a> <b> |
Set environment variable <a> to <b> | -Set NSH variable <a> to <b> | +Set NSH variable <a> to <b>
+ (Unless the NSH variable has been promoted via export , in which case the environment variable of the same name is set to <b>).
+ |
||
unset <a> |
- Unsets environment variable <a> | -Unsets both environment variable and NSH variable <a> | +set |
+ Causes an error. | +Lists all NSH variables. | +
unset <a> |
+ Unsets environment variable <a> | +Unsets both environment variable and NSH variable with and name <a> | |||
export <a> <b> |
@@ -4158,12 +4165,12 @@ set FOOBAR ABC_${FOO}_${BAR}
|||||
export <a> |
Causes an error. | -Sets environment variable <a> to the value of NSH variable <a> (or "" if undefined). Unsets NSH local variable <a>. | +Sets environment variable <a> to the value of NSH variable <a> (or "" if the NSH variable has not been set). Unsets NSH local variable <a>. | ||
env |
Lists all environment variables | -Lists all environment variables (only) | +Lists all environment variables (only) |