summaryrefslogtreecommitdiffstats
path: root/common/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/env.c')
-rw-r--r--common/env.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/common/env.c b/common/env.c
index 1b092c94fe..c8cb29a7a3 100644
--- a/common/env.c
+++ b/common/env.c
@@ -337,22 +337,24 @@ U_BOOT_CMD_START(setenv)
"setenv name\n"
" - delete environment variable 'name'\n")
U_BOOT_CMD_END
+#endif
/**
* @page setenv_command setenv
*
- * Usage: setenv <name> [<value>]
+ * Usage: setenv <name> [<val>]
+ *
+ * Set environment variable <name> to <val ...>
+ * If no <val> was given, the variable <name> will be removed.
*
- * Set environment variable <name> to <value ...>
- * If no <value> was given, the variable <name> will be removed.
+ * This command can be replaced by using the simpler form in the hush:
*
- * This command can be replaced by using the simpler form:
+ * <name> = <val>
*
- * <name> = <value>
+ * @note This command is only required if the simple
+ * parser (not the hush) is in use.
*/
-#endif
-
static int do_export ( cmd_tbl_t *cmdtp, int argc, char *argv[])
{
int i = 1;
@@ -396,4 +398,3 @@ U_BOOT_CMD_END
*
* Export an environment variable to subsequently executed scripts
*/
-