aboutsummaryrefslogtreecommitdiff
path: root/coreutils/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/env.c')
-rw-r--r--coreutils/env.c26
1 files changed, 20 insertions, 6 deletions
diff --git a/coreutils/env.c b/coreutils/env.c
index cdfc30e14..e91eddb5c 100644
--- a/coreutils/env.c
+++ b/coreutils/env.c
@@ -11,16 +11,11 @@
11 * 11 *
12 * Modified for BusyBox by Erik Andersen <andersen@codepoet.org> 12 * Modified for BusyBox by Erik Andersen <andersen@codepoet.org>
13 */ 13 */
14
15/* BB_AUDIT SUSv3 compliant */
16/* http://www.opengroup.org/onlinepubs/007904975/utilities/env.html */
17
18/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) 14/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org)
19 * 15 *
20 * Fixed bug involving exit return codes if execvp fails. Also added 16 * Fixed bug involving exit return codes if execvp fails. Also added
21 * output error checking. 17 * output error checking.
22 */ 18 */
23
24/* 19/*
25 * Modified by Vladimir Oleynik <dzo@simtreas.ru> (C) 2003 20 * Modified by Vladimir Oleynik <dzo@simtreas.ru> (C) 2003
26 * - correct "-" option usage 21 * - correct "-" option usage
@@ -28,8 +23,27 @@
28 * - GNU long option support 23 * - GNU long option support
29 * - use xfunc_error_retval 24 * - use xfunc_error_retval
30 */ 25 */
26//config:config ENV
27//config: bool "env"
28//config: default y
29//config: help
30//config: env is used to set an environment variable and run
31//config: a command; without options it displays the current
32//config: environment.
33//config:
34//config:config FEATURE_ENV_LONG_OPTIONS
35//config: bool "Enable long options"
36//config: default y
37//config: depends on ENV && LONG_OPTS
38//config: help
39//config: Support long options for the env applet.
31 40
32/* This is a NOEXEC applet. Be very careful! */ 41//applet:IF_ENV(APPLET_NOEXEC(env, env, BB_DIR_USR_BIN, BB_SUID_DROP, env))
42
43//kbuild:lib-$(CONFIG_ENV) += env.o
44
45/* BB_AUDIT SUSv3 compliant */
46/* http://www.opengroup.org/onlinepubs/007904975/utilities/env.html */
33 47
34//usage:#define env_trivial_usage 48//usage:#define env_trivial_usage
35//usage: "[-iu] [-] [name=value]... [PROG ARGS]" 49//usage: "[-iu] [-] [name=value]... [PROG ARGS]"