diff options
author | Jari Aalto <jari.aalto@cante.net> | 2001-04-06 19:14:31 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:53 +0000 |
commit | 28ef6c316f1aff914bb95ac09787a3c83c1815fd (patch) | |
tree | 2812fe7ffc9beec4f99856906ddfcafda54cf16a /tests/cond.tests | |
parent | bb70624e964126b7ac4ff085ba163a9c35ffa18f (diff) | |
download | bash-28ef6c316f1aff914bb95ac09787a3c83c1815fd.tar.gz |
Imported from ../bash-2.05.tar.gz.
Diffstat (limited to 'tests/cond.tests')
-rwxr-xr-x | tests/cond.tests | 13 |
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: $? |