1
0
Fork 0
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:
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

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