mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-19 03:31:14 +02:00
30242: use PREFORK_SINGLE for ${...=...} in POSIX emulation
This commit is contained in:
parent
5f25bb8223
commit
15138d4fb7
2 changed files with 14 additions and 4 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,8 @@
|
||||||
|
2012-02-20 Barton E. Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* 30242: Src/subst.c: use PREFORK_SINGLE for the right-hand side
|
||||||
|
of ${...=...} when SH_WORD_SPLIT is in effect (POSIX emulation).
|
||||||
|
|
||||||
2012-02-19 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
2012-02-19 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
* unposted: Etc/Config.yo, Completion/X/Type/.distfiles,
|
* unposted: Etc/Config.yo, Completion/X/Type/.distfiles,
|
||||||
|
@ -67,8 +72,8 @@
|
||||||
|
|
||||||
2012-02-09 Barton E. Schaefer <schaefer@zsh.org>
|
2012-02-09 Barton E. Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
* 30193: ChangeLog Src/Zle/compcore.c: remnulargs() after poking
|
* 30193: Src/Zle/compcore.c: remnulargs() after poking into string
|
||||||
into string in case length changes.
|
in case length changes.
|
||||||
|
|
||||||
2012-02-08 Peter Stephenson <pws@csr.com>
|
2012-02-08 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
|
@ -15995,5 +16000,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.5590 $
|
* $Revision: 1.5591 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -2693,7 +2693,12 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags)
|
||||||
*idend = '\0';
|
*idend = '\0';
|
||||||
val = dupstring(s);
|
val = dupstring(s);
|
||||||
if (spsep || !arrasg) {
|
if (spsep || !arrasg) {
|
||||||
multsub(&val, PREFORK_NOSHWORDSPLIT, NULL, &isarr, NULL);
|
/* POSIX requires PREFORK_SINGLE semantics here, but
|
||||||
|
* traditional zsh used PREFORK_NOSHWORDSPLIT. Base
|
||||||
|
* behavior on caller choice of PREFORK_SHWORDSPLIT. */
|
||||||
|
multsub(&val,
|
||||||
|
spbreak ? PREFORK_SINGLE : PREFORK_NOSHWORDSPLIT,
|
||||||
|
NULL, &isarr, NULL);
|
||||||
} else {
|
} else {
|
||||||
if (spbreak)
|
if (spbreak)
|
||||||
split_flags = PREFORK_SPLIT|PREFORK_SHWORDSPLIT;
|
split_flags = PREFORK_SPLIT|PREFORK_SHWORDSPLIT;
|
||||||
|
|
Loading…
Reference in a new issue