aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-03-29 22:48:33 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-03-29 22:48:33 +0000
commitd1c2f06bcae8d6126ac9c2d905ca32d8bc84f9ac (patch)
tree3b13416dae3293c97fdb0a66309bfa79e40cafcd /include
parenta354137e2c7eb04e5941f81a8806fdad3522ffb5 (diff)
downloadbusybox-w32-d1c2f06bcae8d6126ac9c2d905ca32d8bc84f9ac.tar.gz
busybox-w32-d1c2f06bcae8d6126ac9c2d905ca32d8bc84f9ac.tar.bz2
busybox-w32-d1c2f06bcae8d6126ac9c2d905ca32d8bc84f9ac.zip
Add in a new standalone env applet for fixing up app's environments
-Erik git-svn-id: svn://busybox.net/trunk/busybox@2224 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 0ab296312..255bd6b44 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -131,6 +131,9 @@
131#if defined(BB_FEATURE_GREP_EGREP_ALIAS) && defined(BB_GREP) 131#if defined(BB_FEATURE_GREP_EGREP_ALIAS) && defined(BB_GREP)
132 APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN) 132 APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN)
133#endif 133#endif
134#ifdef BB_ENV
135 APPLET(env, env_main, _BB_DIR_USR_BIN)
136#endif
134#ifdef BB_EXPR 137#ifdef BB_EXPR
135 APPLET(expr, expr_main, _BB_DIR_USR_BIN) 138 APPLET(expr, expr_main, _BB_DIR_USR_BIN)
136#endif 139#endif
diff --git a/include/usage.h b/include/usage.h
index dde3dd146..32b34e45f 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -343,6 +343,15 @@
343 "$ echo "Erik\nis\ncool"\n" \ 343 "$ echo "Erik\nis\ncool"\n" \
344 "Erik\nis\ncool\n" 344 "Erik\nis\ncool\n"
345 345
346#define env_trivial_usage \
347 "[-] [-iu] [name=value ...] [command]"
348#define env_full_usage \
349 "Prints the current environment or runs a program after setting\n" \
350 "up the specified environment.\n\n" \
351 "Options:\n" \
352 "\t-, -i\tstart with an empty environment\n" \
353 "\t-u\tremove variable from the environment\n"
354
346#define expr_trivial_usage \ 355#define expr_trivial_usage \
347 "EXPRESSION" 356 "EXPRESSION"
348#define expr_full_usage \ 357#define expr_full_usage \