aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test.tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test.tests')
-rw-r--r--tests/test.tests12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test.tests b/tests/test.tests
index 47ad9bb..47eef35 100644
--- a/tests/test.tests
+++ b/tests/test.tests
@@ -286,12 +286,24 @@ t -n abcd -a aaa
echo 't -n abcd -a -z aaa'
t -n abcd -a -z aaa
+# test set or unset shell options
set +o allexport
echo 't -o allexport'
t -o allexport
echo 't ! -o allexport'
t ! -o allexport
+#test set or unset shell variables
+unset unset
+echo 't -v unset'
+t -v unset
+set=
+echo 't -v set'
+t -v set
+set=set
+echo 't -v set'
+t -v set
+
echo 't xx -a yy'
t xx -a yy
echo 't xx -o ""'