diff options
author | Denys Vlasenko | 2021-09-07 01:52:21 +0200 |
---|---|---|
committer | Denys Vlasenko | 2021-09-07 01:52:21 +0200 |
commit | 41beb53787ec798a27f336c4758cb5ebd8f0c75a (patch) | |
tree | 159adc66892cbf865d070cf809d3ae0825df4d19 /shell/ash_test/ash-misc/set-n1.tests | |
parent | e0bf3df0205d5ccef52df67b1760b8b54f15ec6e (diff) | |
download | busybox-41beb53787ec798a27f336c4758cb5ebd8f0c75a.zip busybox-41beb53787ec798a27f336c4758cb5ebd8f0c75a.tar.gz |
ash: eval: Check nflag in evaltree instead of cmdloop
Upstream commit:
Date: Thu, 4 Jun 2020 21:53:55 +1000
eval: Check nflag in evaltree instead of cmdloop
This patch moves the nflag check from cmdloop into evaltree. This
is so that nflag will be in force even if we enter the shell via a
path other than cmdloop, e.g., through sh -c.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-misc/set-n1.tests')
-rwxr-xr-x | shell/ash_test/ash-misc/set-n1.tests | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ash_test/ash-misc/set-n1.tests b/shell/ash_test/ash-misc/set-n1.tests new file mode 100755 index 0000000..90d0f91 --- /dev/null +++ b/shell/ash_test/ash-misc/set-n1.tests @@ -0,0 +1,2 @@ +$THIS_SH -c "echo 'set -n stops in -c?'; set -n; echo NO" && echo YES +echo Ok:$? |