mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-22 00:21:27 +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
|
@ -1,3 +1,9 @@
|
|||
2003-07-03 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 18769: Src/exec.c: parse error in autoloading file causes
|
||||
return value zero and empty function definition. Presumed
|
||||
to be error introduced with wordcode.
|
||||
|
||||
2003-06-25 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 18634: Tomi Vainio: Src/system.h: work around problem with
|
||||
|
|
|
@ -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…
Reference in a new issue