summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen2001-03-29 22:48:33 +0000
committerEric Andersen2001-03-29 22:48:33 +0000
commit84e229cfbe00d27ce81dad66c982bec0d50cdfd7 (patch)
tree3b13416dae3293c97fdb0a66309bfa79e40cafcd /include
parente5c24dfd010732ab6b80a96ad2a5414499c496c0 (diff)
downloadbusybox-84e229cfbe00d27ce81dad66c982bec0d50cdfd7.zip
busybox-84e229cfbe00d27ce81dad66c982bec0d50cdfd7.tar.gz
Add in a new standalone env applet for fixing up app's environments
-Erik
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h9
2 files changed, 12 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 0ab2963..255bd6b 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -131,6 +131,9 @@
#if defined(BB_FEATURE_GREP_EGREP_ALIAS) && defined(BB_GREP)
APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN)
#endif
+#ifdef BB_ENV
+ APPLET(env, env_main, _BB_DIR_USR_BIN)
+#endif
#ifdef BB_EXPR
APPLET(expr, expr_main, _BB_DIR_USR_BIN)
#endif
diff --git a/include/usage.h b/include/usage.h
index dde3dd1..32b34e4 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -343,6 +343,15 @@
"$ echo "Erik\nis\ncool"\n" \
"Erik\nis\ncool\n"
+#define env_trivial_usage \
+ "[-] [-iu] [name=value ...] [command]"
+#define env_full_usage \
+ "Prints the current environment or runs a program after setting\n" \
+ "up the specified environment.\n\n" \
+ "Options:\n" \
+ "\t-, -i\tstart with an empty environment\n" \
+ "\t-u\tremove variable from the environment\n"
+
#define expr_trivial_usage \
"EXPRESSION"
#define expr_full_usage \