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:
parent
e81160def2
commit
936208bd9f
2 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue