about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-04-23 11:17:13 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-04-23 11:17:13 +0000
commit63442b3eaa58d5fd140306bd2ce85dd994284889 (patch)
tree651a80eebbdf2fe8b766fb6a260bafa13661169c /Src/exec.c
parent5747147afff8a991561a490eca38892c1971a901 (diff)
downloadzsh-63442b3eaa58d5fd140306bd2ce85dd994284889.tar.gz
zsh-63442b3eaa58d5fd140306bd2ce85dd994284889.tar.xz
zsh-63442b3eaa58d5fd140306bd2ce85dd994284889.zip
19810: ksh autoloading
19812: autoloaded traps which are still buggy.
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/exec.c b/Src/exec.c
index ff34edb4b..1bc461ffa 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -3546,10 +3546,10 @@ doshfunc(char *name, Eprog prog, LinkList doshargs, int flags, int noreturnval)
     if (prog->flags & EF_RUN) {
 	Shfunc shf;
 
-	runshfunc(prog, NULL, fstack.name);
-
 	prog->flags &= ~EF_RUN;
 
+	runshfunc(prog, NULL, fstack.name);
+
 	if (!(shf = (Shfunc) shfunctab->getnode(shfunctab,
 						(name = fname)))) {
 	    zwarn("%s: function not defined by file", name, 0);