1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-28 15:01:21 +02:00

22516: error in func() didn't pop command stack

This commit is contained in:
Peter Stephenson 2006-06-26 10:04:09 +00:00
parent 66b58d9c21
commit bd50a3c516
2 changed files with 7 additions and 1 deletions

@ -1,5 +1,8 @@
2006-06-26 Peter Stephenson <pws@csr.com>
* 22516: Src/parse.c: error evaluating "func()" didn't pop
the command stack.
* 22501: README: missed this bit.
2006-06-24 Clint Adams <clint@zsh.org>

@ -1672,6 +1672,7 @@ par_simple(int *complex, int nr)
lineno += oldlineno;
ecnpats = onp;
ecssub = oecssub;
cmdpop();
YYERROR(oecused);
}
yylex();
@ -1683,8 +1684,10 @@ par_simple(int *complex, int nr)
pl = ecadd(WCB_PIPE(WC_PIPE_END, 0));
par_cmd(&c);
if (!c)
if (!c) {
cmdpop();
YYERROR(oecused);
}
set_sublist_code(sl, WC_SUBLIST_END, 0, ecused - 1 - sl, c);
set_list_code(ll, (Z_SYNC | Z_END), c);