diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/builtin.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) { |