1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 16:50:58 +01:00

18769: handle parse errors in autoload functions properly

This commit is contained in:
Peter Stephenson 2003-07-03 11:07:39 +00:00
parent e81160def2
commit 936208bd9f
2 changed files with 7 additions and 1 deletions

View file

@ -3339,7 +3339,7 @@ loadautofn(Shfunc shf, int fksh, int autol)
return NULL;
}
if (!prog)
prog = &dummy_eprog;
return NULL;
if (ksh == 2 || (ksh == 1 && isset(KSHAUTOLOAD))) {
if (autol) {
prog->flags |= EF_RUN;