From 9d47e8398d299e53ffe4e7ddf3731d2fedae9948 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Tue, 13 May 2014 08:16:50 -0700 Subject: 32609: [[ $var ]] behaves as [[ -n $var ]] for bash/ksh compatibility Also restore ksh [ -t ] compatibility when POSIX_BUILTINS is not set, and allow operators defined by modules to be called with no arguments, although this affects only runtime interpretation, not parsing. --- Test/C02cond.ztst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Test/C02cond.ztst') diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index 94fca8b68..69001476c 100644 --- a/Test/C02cond.ztst +++ b/Test/C02cond.ztst @@ -349,6 +349,14 @@ F:Failures in these cases do not indicate a problem in the shell. >0 >1 + foo='' + [[ $foo ]] || print foo is empty + foo=full + [[ $foo ]] && print foo is full +0:bash compatibility with single [[ ... ]] argument +>foo is empty +>foo is full + %clean # This works around a bug in rm -f in some versions of Cygwin chmod 644 unmodish -- cgit 1.4.1