mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-05 23:11:11 +02:00
30242: Tests for ${...=...} in POSIX emulation
This commit is contained in:
parent
f9c94bd221
commit
3604a9c4ac
2 changed files with 8 additions and 4 deletions
|
@ -5,8 +5,9 @@
|
||||||
|
|
||||||
2012-02-20 Barton E. Schaefer <schaefer@zsh.org>
|
2012-02-20 Barton E. Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
* 30242: Src/subst.c: use PREFORK_SINGLE for the right-hand side
|
* 30242: Src/subst.c, Test/D05parameter.ztst: use PREFORK_SINGLE
|
||||||
of ${...=...} when SH_WORD_SPLIT is in effect (POSIX emulation).
|
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>
|
||||||
|
|
||||||
|
@ -16005,5 +16006,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.5592 $
|
* $Revision: 1.5593 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -264,10 +264,13 @@
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
test_split_var=
|
test_split_var=
|
||||||
: ${test_split_var:=$(test_splitting)}
|
echo _${test_split_var:=$(test_splitting)}_
|
||||||
echo "_${test_split_var}_")
|
echo "_${test_split_var}_")
|
||||||
0:SH_WORD_SPLIT inside $(...) inside ${...}
|
0:SH_WORD_SPLIT inside $(...) inside ${...}
|
||||||
>_'one' 'two' 'three'_
|
>_'one' 'two' 'three'_
|
||||||
|
>_'one'
|
||||||
|
>'two'
|
||||||
|
>'three'_
|
||||||
|
|
||||||
print -l "${(f)$(print first line\\nsecond line\\nthird line)}"
|
print -l "${(f)$(print first line\\nsecond line\\nthird line)}"
|
||||||
0:${(f)$(...)}
|
0:${(f)$(...)}
|
||||||
|
|
Loading…
Reference in a new issue