mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
50359: fix bad sticky-emulation in "functions -c"
This commit is contained in:
parent
d24ab95469
commit
d4955bc0f9
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2022-06-09 Matthew Martin <phy1729@gmail.com>
|
||||
|
||||
* 50359: Src/builtin.c: fix bad sticky-emulation in "functions -c"
|
||||
|
||||
2022-06-09 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 50351: Src/builtin.c: "functions -c" can set signal traps
|
||||
|
|
|
@ -3305,7 +3305,7 @@ bin_functions(char *name, char **argv, Options ops, int func)
|
|||
if (newsh->redir)
|
||||
newsh->redir->nref++;
|
||||
if (shf->sticky)
|
||||
newsh->sticky = sticky_emulation_dup(sticky, 0);
|
||||
newsh->sticky = sticky_emulation_dup(shf->sticky, 0);
|
||||
/* is newsh a signal trap? (adapted from exec.c) */
|
||||
if (!strncmp(s, "TRAP", 4)) {
|
||||
int signum = getsignum(s + 4);
|
||||
|
|
Loading…
Reference in a new issue