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:
parent
0cc033db7c
commit
c6a3ccc8d7
3 changed files with 17 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue