mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
Merge of users/11883: return at top level caused following precommand functions to return immediately.
This commit is contained in:
parent
9020f6336e
commit
56ce511736
1 changed files with 4 additions and 2 deletions
|
@ -1285,9 +1285,11 @@ zsh_main(UNUSED(int argc), char **argv)
|
||||||
*/
|
*/
|
||||||
maybeshrinkjobtab();
|
maybeshrinkjobtab();
|
||||||
|
|
||||||
do
|
do {
|
||||||
|
/* Reset return from top level which gets us back here */
|
||||||
|
retflag = 0;
|
||||||
loop(1,0);
|
loop(1,0);
|
||||||
while (tok != ENDINPUT && (tok != LEXERR || isset(SHINSTDIN)));
|
} while (tok != ENDINPUT && (tok != LEXERR || isset(SHINSTDIN)));
|
||||||
if (tok == LEXERR) {
|
if (tok == LEXERR) {
|
||||||
/* Make sure a parse error exits with non-zero status */
|
/* Make sure a parse error exits with non-zero status */
|
||||||
if (!lastval)
|
if (!lastval)
|
||||||
|
|
Loading…
Reference in a new issue