mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-25 14:20:53 +01: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
|
|
@ -1199,6 +1199,10 @@ par_if(int *complex)
|
|||
type = (xtok == IF ? WC_IF_IF : WC_IF_ELIF);
|
||||
par_save_list(complex);
|
||||
incmdpos = 1;
|
||||
if (tok == ENDINPUT) {
|
||||
cmdpop();
|
||||
YYERRORV(oecused);
|
||||
}
|
||||
while (tok == SEPER)
|
||||
zshlex();
|
||||
xtok = FI;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue