mirror of
https://github.com/zsh-users/zsh
synced 2024-07-21 10:14:19 +00:00
18769: handle parse errors in autoload functions properly
This commit is contained in:
parent
e81160def2
commit
936208bd9f
|
@ -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>
|
2003-06-25 Oliver Kiddle <opk@zsh.org>
|
||||||
|
|
||||||
* 18634: Tomi Vainio: Src/system.h: work around problem with
|
* 18634: Tomi Vainio: Src/system.h: work around problem with
|
||||||
|
|
|
@ -3339,7 +3339,7 @@ loadautofn(Shfunc shf, int fksh, int autol)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (!prog)
|
if (!prog)
|
||||||
prog = &dummy_eprog;
|
return NULL;
|
||||||
if (ksh == 2 || (ksh == 1 && isset(KSHAUTOLOAD))) {
|
if (ksh == 2 || (ksh == 1 && isset(KSHAUTOLOAD))) {
|
||||||
if (autol) {
|
if (autol) {
|
||||||
prog->flags |= EF_RUN;
|
prog->flags |= EF_RUN;
|
||||||
|
|
Loading…
Reference in a new issue