summaryrefslogtreecommitdiff
path: root/tests/cond.tests
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>2001-04-06 19:14:31 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:53 +0000
commit28ef6c316f1aff914bb95ac09787a3c83c1815fd (patch)
tree2812fe7ffc9beec4f99856906ddfcafda54cf16a /tests/cond.tests
parentbb70624e964126b7ac4ff085ba163a9c35ffa18f (diff)
downloadbash-28ef6c316f1aff914bb95ac09787a3c83c1815fd.tar.gz
Imported from ../bash-2.05.tar.gz.
Diffstat (limited to 'tests/cond.tests')
-rwxr-xr-xtests/cond.tests13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/cond.tests b/tests/cond.tests
index 4f3cbdff..acaa5272 100755
--- a/tests/cond.tests
+++ b/tests/cond.tests
@@ -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: $?