]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/cond.tests
Imported from ../bash-2.05.tar.gz.
[thirdparty/bash.git] / tests / cond.tests
index 4f3cbdff53abe7f0c4035abc6c0026ef47372539..acaa5272e9e90a50126fb4a0b8e2a464d611908c 100755 (executable)
@@ -20,6 +20,19 @@ echo returns: $?
 [[ ! x || x ]]
 echo returns: $?
 
+# parenthesized terms didn't work right until post-2.04
+[[ a ]]
+echo returns: $?
+
+[[ (a) ]]
+echo returns: $?
+
+[[ -n a ]]
+echo returns: $?
+
+[[ (-n a) ]]
+echo returns: $?
+
 # unset variables don't need to be quoted
 [[ -n $UNSET ]]
 echo returns: $?