1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-21 19:31:50 +02:00

52176: metafy return from ${ ... } substitution

This commit is contained in:
Bart Schaefer 2023-09-22 20:29:40 -05:00
parent 9eb2b04703
commit b357992697
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2023-09-22 Bart Schaefer <schaefer@zsh.org>
* 52176: Src/subst.c: metafy return from ${ ... } substitution
(adapted from Jun T.: 52172)
2023-09-20 Oliver Kiddle <opk@zsh.org>
* Jörg Sommer: 51747: Functions/Misc/run-help-ip:

View File

@ -2003,11 +2003,12 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags,
} else /* parse error */
errflag |= ERRFLAG_ERROR;
if (rplytmp && !errflag) {
int onoerrs = noerrs;
int onoerrs = noerrs, rplylen;
noerrs = 2;
if ((cmdarg = ztuff(rplytmp)))
setsparam("REPLY", cmdarg);
rplylen = zstuff(&cmdarg, rplytmp);
noerrs = onoerrs;
if (rplylen >= 0)
setsparam("REPLY", metafy(cmdarg, rplylen, META_REALLOC));
}
}