1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 18:30:55 +01:00

22049: bug exiting from sourced file within function

This commit is contained in:
Peter Stephenson 2005-12-03 00:14:05 +00:00
parent 3bd51758ef
commit bf3ee0f725
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-12-03 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 22049: Src/init.c: "exit" within sourced file within shell
function caused return from sourced file but execution of function
continued.
2005-11-30 Wayne Davison <wayned@users.sourceforge.net>
* unposted: Src/Zle/zle_misc.c: fixed parsedigit() to have

View file

@ -1085,7 +1085,8 @@ source(char *s)
loops = oloops; /* the # of nested loops we are in */
dosetopt(SHINSTDIN, oldshst, 1); /* SHINSTDIN option */
errflag = 0;
retflag = 0;
if (!exit_pending)
retflag = 0;
scriptname = old_scriptname;
free(cmdstack);
cmdstack = ocs;