about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2013-09-04 20:16:58 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2013-09-04 20:16:58 +0100
commit2afa556d8fd6b365e518ef754fc34f0ffb6854ff (patch)
tree9740722740f2b7ed5d9f0f43b39d97a5bde3c93b /Test
parent1c9931cc7d37cac9aebb034444fb87e0901e914a (diff)
downloadzsh-2afa556d8fd6b365e518ef754fc34f0ffb6854ff.tar.gz
zsh-2afa556d8fd6b365e518ef754fc34f0ffb6854ff.tar.xz
zsh-2afa556d8fd6b365e518ef754fc34f0ffb6854ff.zip
31696: In "test" No One Can Hear If You Shriek.
Treat ! as a string in "test ! -a ..." and "test ! -o ...".
Diffstat (limited to 'Test')
-rw-r--r--Test/C02cond.ztst21
1 files changed, 21 insertions, 0 deletions
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