1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-24 04:50:27 +02:00

27092: missing then-clause for if wasn't an error

This commit is contained in:
Peter Stephenson 2009-07-06 20:44:28 +00:00
parent 0cc033db7c
commit c6a3ccc8d7
3 changed files with 17 additions and 2 deletions

View file

@ -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