summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/exec.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f8183dcf7..b9d11e4ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-11 Peter Stephenson <pws@cambridgesiliconradio.com>
+
+ * Src/exec.c: 12220: print error message for unfound autoload
+ function body at lower locallevel.
+
2000-07-10 Bart Schaefer <schaefer@zsh.org>
* unposted: Completion/User/_killall: Complete process IDs and
diff --git a/Src/exec.c b/Src/exec.c
index 6d2042721..aa462de92 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -3201,7 +3201,10 @@ loadautofn(Shfunc shf, int fksh, int autol)
ksh = fksh;
if (prog == &dummy_eprog) {
+ /* We're not actually in the function; decrement locallevel */
+ locallevel--;
zerr("%s: function definition file not found", shf->nam, 0);
+ locallevel++;
popheap();
return NULL;
}