summaryrefslogtreecommitdiffstats
path: root/common/env.c
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@isonoe.(none)>2007-10-19 15:23:48 +0200
committerJuergen Beisert <jbe@isonoe.(none)>2007-10-19 15:23:48 +0200
commit53dd8423a51db7e891241cd339e63dc44194ace0 (patch)
tree505ab063bc20e9e121254cb12a14104c01038a01 /common/env.c
parent15a794bd70700fffe802af032d3ea50a00d76dc1 (diff)
downloadbarebox-53dd8423a51db7e891241cd339e63dc44194ace0.tar.gz
adding new doc
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 1b092c9..c8cb29a 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
*/
-