From 321471891e259c7b406f3cfaf1c076b28ae16a5f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 7 Oct 2012 17:50:18 +0000 Subject: 30718: emulate command evaluations should apply sticky emulation to autoloads, too --- Src/builtin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Src/builtin.c') diff --git a/Src/builtin.c b/Src/builtin.c index 51ddce18c..e9ad8f3de 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -2944,8 +2944,7 @@ bin_functions(char *name, char **argv, Options ops, int func) shf = (Shfunc) zshcalloc(sizeof *shf); shf->node.flags = on; shf->funcdef = mkautofn(shf); - /* No sticky emulation for autoloaded functions */ - shf->emulation = 0; + shf->emulation = sticky_emulation; shfunctab->addnode(shfunctab, ztrdup(*argv), shf); if (signum != -1) { -- cgit 1.4.1