diff options
author | Denys Vlasenko | 2016-09-28 19:44:16 +0200 |
---|---|---|
committer | Denys Vlasenko | 2016-09-28 19:44:16 +0200 |
commit | 7ee7c6fc20d3b94c257f829dece097ff339895ee (patch) | |
tree | cf9671d7c27905e7c5d1597ee51363325aeeca5c /shell | |
parent | eb17b6f6c99df4a132742facd43a9485bb7ac5a0 (diff) | |
download | busybox-7ee7c6fc20d3b94c257f829dece097ff339895ee.zip busybox-7ee7c6fc20d3b94c257f829dece097ff339895ee.tar.gz |
ash: Remove unused EV_BACKCMD flag
The original ash defered forking commands in backquotes so builtins
could be run in the same context as the shell. This behavior was
controlled using the EV_BACKCMD to evaltree.
Unfortunately, as Matthias Scheler noticed in 1999 (NetBSD PR/7814),
the result was counterintuitive; for example, echo "`cd /`" would
change the cwd. So ash 0.3.5 left out that optimization.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index ec006af..f395a16 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -8065,7 +8065,6 @@ static char *funcstring; /* block to allocate strings from */ /* flags in argument to evaltree */ #define EV_EXIT 01 /* exit after evaluating tree */ #define EV_TESTED 02 /* exit status is checked; ignore -e flag */ -#define EV_BACKCMD 04 /* command executing within back quotes */ static const uint8_t nodesize[N_NUMBER] ALIGN1 = { [NCMD ] = SHELL_ALIGN(sizeof(struct ncmd)), |