diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2012-10-07 17:50:18 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-10-07 17:50:18 +0000 |
commit | 321471891e259c7b406f3cfaf1c076b28ae16a5f (patch) | |
tree | 19d797c373bd51fe49437a7eb58933fbf1c81c09 /Src/builtin.c | |
parent | fff9a871e469bf689f22ff47561e0de960d5d49b (diff) | |
download | zsh-321471891e259c7b406f3cfaf1c076b28ae16a5f.tar.gz zsh-321471891e259c7b406f3cfaf1c076b28ae16a5f.tar.xz zsh-321471891e259c7b406f3cfaf1c076b28ae16a5f.zip |
30718: emulate command evaluations should apply sticky emulation
to autoloads, too
Diffstat (limited to 'Src/builtin.c')
-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) { |