aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/runner/env.testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test/script/runner/env.testscript')
-rw-r--r--tests/test/script/runner/env.testscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test/script/runner/env.testscript b/tests/test/script/runner/env.testscript
new file mode 100644
index 0000000..6fcedfa
--- /dev/null
+++ b/tests/test/script/runner/env.testscript
@@ -0,0 +1,7 @@
+# file : tests/test/script/runner/env.testscript
+# license : MIT; see accompanying LICENSE file
+
+.include ../common.testscript
+
+$c <'env abc=xyz -- $* -v abc >xyz' && $b : set
+$c <'env --unset=abc -- $* -v abc >"<none>"' && env abc=xyz -- $b : unset