about summary refs log tree commit diff
path: root/Test/A01grammar.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-07-06 20:44:28 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-07-06 20:44:28 +0000
commitc6a3ccc8d725a1729131a328848ad5c509b821e5 (patch)
treeb447b4df2c081563d5fcaffe9e7afdb953d0c456 /Test/A01grammar.ztst
parent0cc033db7cddafebab6ec99e6aee464f816de393 (diff)
downloadzsh-c6a3ccc8d725a1729131a328848ad5c509b821e5.tar.gz
zsh-c6a3ccc8d725a1729131a328848ad5c509b821e5.tar.xz
zsh-c6a3ccc8d725a1729131a328848ad5c509b821e5.zip
27092: missing then-clause for if wasn't an error
Diffstat (limited to 'Test/A01grammar.ztst')
-rw-r--r--Test/A01grammar.ztst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst
index 8f4ed2c19..e976c8356 100644
--- a/Test/A01grammar.ztst
+++ b/Test/A01grammar.ztst
@@ -378,10 +378,15 @@
 >true-2
 >false
 
-  if true; print true
+  if { true } print true
+  if { false } print false
 0:Short form of `if'
 >true
 
+  eval "if"
+1:Short form of `if' can't be too short
+?(eval):1: parse error near `if'
+
   for name ( word1 word2 word3 ) print $name
 0:Form of `for' with parentheses.
 >word1