From c7d8b0dfb8ae9670e2bc11ecf563200069a3a12f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 11 Feb 2009 20:42:15 +0000 Subject: 26546, 26556: sticky emulation for functions defined in emulate ... -c ... environments, plus documentation --- Src/parse.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Src/parse.c') diff --git a/Src/parse.c b/Src/parse.c index 722809a78..59459870a 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -3415,6 +3415,7 @@ dump_autoload(char *nam, char *file, int on, Options ops, int func) shf = (Shfunc) zshcalloc(sizeof *shf); shf->node.flags = on; shf->funcdef = mkautofn(shf); + shf->emulation = 0; shfunctab->addnode(shfunctab, ztrdup(fdname(n) + fdhtail(n)), shf); if (OPT_ISSET(ops,'X') && eval_autoload(shf, shf->node.nam, ops, func)) ret = 1; -- cgit v1.2.3