commit | e53c7dbafc78948e5c0d8d8ccb0bdcd9f936c62e | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Tue Sep 07 02:23:51 2021 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Tue Sep 07 02:25:52 2021 +0200 |
tree | 909286fc381d47fba921621afb809a84997815fc | |
parent | f415e21a7dce1d4f4b760fddfaba85c551681e11 [diff] [blame] |
hush: fix set -n to act immediately, not just after run_list() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/shell/hush_test/hush-misc/set-n1.tests b/shell/hush_test/hush-misc/set-n1.tests new file mode 100755 index 0000000..90d0f91 --- /dev/null +++ b/shell/hush_test/hush-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:$?