1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 21:51:40 +02:00

Merge of users/11883: return at top level caused following precommand functions to return immediately.

This commit is contained in:
Paul Ackersviller 2007-11-25 04:13:50 +00:00
parent 9020f6336e
commit 56ce511736

View file

@ -1285,9 +1285,11 @@ zsh_main(UNUSED(int argc), char **argv)
*/
maybeshrinkjobtab();
do
do {
/* Reset return from top level which gets us back here */
retflag = 0;
loop(1,0);
while (tok != ENDINPUT && (tok != LEXERR || isset(SHINSTDIN)));
} while (tok != ENDINPUT && (tok != LEXERR || isset(SHINSTDIN)));
if (tok == LEXERR) {
/* Make sure a parse error exits with non-zero status */
if (!lastval)