From 67877f60552019226e93f56b108f7b61a60ea11b Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 9 Dec 2015 16:40:08 +0000 Subject: 37364: "test" and "[" handling of parentheses. If three arguments, need to prefer binary operators if possible. Need to look for full string for parentheses. --- Test/C02cond.ztst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Test') diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index 40bbf424a..9e1369689 100644 --- a/Test/C02cond.ztst +++ b/Test/C02cond.ztst @@ -389,6 +389,18 @@ F:Failures in these cases do not indicate a problem in the shell. >Not zero 5 >Not zero 6 + [ '(' = ')' ] || print OK 1 + [ '((' = '))' ] || print OK 2 + [ '(' = '(' ] && print OK 3 + [ '(' non-empty-string ')' ] && echo OK 4 + [ '(' '' ')' ] || echo OK 5 +0:yet more old-fashioned test fix ups: prefer comparison to parentheses +>OK 1 +>OK 2 +>OK 3 +>OK 4 +>OK 5 + %clean # This works around a bug in rm -f in some versions of Cygwin chmod 644 unmodish -- cgit 1.4.1