diff options
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: $? |