aboutsummaryrefslogtreecommitdiff
path: root/tests/test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-12-09 21:23:38 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-12-11 14:31:39 +0300
commit26af9268e98ed4c82c83b8f6e3f94af71b109eba (patch)
tree3062b7087a87f2aa145fb13db06a7db941d07db8 /tests/test
parent32f153664e7b6cadfb518b83e12b9768a150d709 (diff)
Fix set pseudo-builtin to reset special variables when required
Diffstat (limited to 'tests/test')
-rw-r--r--tests/test/script/runner/set.testscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test/script/runner/set.testscript b/tests/test/script/runner/set.testscript
index e19cce3..b2944a3 100644
--- a/tests/test/script/runner/set.testscript
+++ b/tests/test/script/runner/set.testscript
@@ -269,6 +269,15 @@
}
}
+: special-vars
+:
+{
+ $c <<EOI && $b
+ set -w test.options <'-o foo';
+ $* >'foo'
+ EOI
+}
+
: deadline
:
{