Add in a new standalone env applet for fixing up app's environments

-Erik
This commit is contained in:
Eric Andersen
2001-03-29 22:48:33 +00:00
parent e5c24dfd01
commit 84e229cfbe
12 changed files with 252 additions and 48 deletions

View File

@@ -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

View File

@@ -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 \