summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-misc/set-n1.tests
diff options
context:
space:
mode:
authorDenys Vlasenko2021-09-07 01:52:21 +0200
committerDenys Vlasenko2021-09-07 01:52:21 +0200
commit41beb53787ec798a27f336c4758cb5ebd8f0c75a (patch)
tree159adc66892cbf865d070cf809d3ae0825df4d19 /shell/ash_test/ash-misc/set-n1.tests
parente0bf3df0205d5ccef52df67b1760b8b54f15ec6e (diff)
downloadbusybox-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-xshell/ash_test/ash-misc/set-n1.tests2
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:$?