From 2afa556d8fd6b365e518ef754fc34f0ffb6854ff Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 4 Sep 2013 20:16:58 +0100 Subject: 31696: In "test" No One Can Hear If You Shriek. Treat ! as a string in "test ! -a ..." and "test ! -o ...". --- Test/C02cond.ztst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'Test') diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index 494261ee3..856251923 100644 --- a/Test/C02cond.ztst +++ b/Test/C02cond.ztst @@ -324,6 +324,27 @@ F:Failures in these cases do not indicate a problem in the shell. > fi >} + weirdies=( + '! -a !' + '! -o !' + '! -a' + '! -o' + '! -a ! -a !' + '! = !' + '! !') + for w in $weirdies; do + eval test $w + print $? + done +0:test compatability weirdness: treat ! as a string sometimes +>0 +>0 +>1 +>0 +>0 +>0 +>1 + %clean # This works around a bug in rm -f in some versions of Cygwin chmod 644 unmodish -- cgit 1.4.1