Bash-4.2 distribution sources and documentation
[platform/upstream/bash.git] / tests / test.tests
index 47ad9bb..47eef35 100644 (file)
@@ -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 ""'