1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 16:40:24 +02:00

30726: make shell options passed to emulate stick along with the emulation

This commit is contained in:
Peter Stephenson 2012-10-11 20:14:01 +00:00
parent ad92cb3203
commit 4b86cc48f7
12 changed files with 287 additions and 41 deletions

View file

@ -289,7 +289,7 @@ setfunction(char *name, char *val, int dis)
shf = (Shfunc) zshcalloc(sizeof(*shf));
shf->funcdef = dupeprog(prog, 0);
shf->node.flags = dis;
shf->emulation = sticky_emulation;
shfunc_set_sticky(shf);
if (!strncmp(name, "TRAP", 4) &&
(sn = getsignum(name + 4)) != -1) {