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:
parent
9eb2b04703
commit
b357992697
@ -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:
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user