mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 12:40:58 +02:00
35590: tweak and test text output from typeset
This commit is contained in:
parent
39b28980f3
commit
7b46509e92
3 changed files with 17 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2015-06-24 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 35590: Src/text.c, Test/B02typeset.ztst: tweak and
|
||||
test text output for typeset.
|
||||
|
||||
* various culminating in 35586, c.f. commits on typeset-array
|
||||
branch: Config/version.mk, Doc/Zsh/builtins.yo,
|
||||
Doc/Zsh/grammar.yo, Doc/Zsh/options.yo, NEWS, README,
|
||||
|
|
|
@ -189,6 +189,8 @@ taddassign(wordcode code, Estate state, int typeset)
|
|||
static void
|
||||
taddassignlist(Estate state, wordcode count)
|
||||
{
|
||||
if (count)
|
||||
taddchr(' ');
|
||||
while (count--) {
|
||||
wordcode code = *state->pc++;
|
||||
taddassign(code, state, 1);
|
||||
|
|
|
@ -651,3 +651,15 @@
|
|||
>odd
|
||||
>number
|
||||
>here
|
||||
|
||||
fn() { typeset foo bar thing=this stuff=(that other) more=woevva; }
|
||||
which -x2 fn
|
||||
fn2() { typeset assignfirst=(why not); }
|
||||
which -x2 fn2
|
||||
0:text output from typeset
|
||||
>fn () {
|
||||
> typeset foo bar thing=this stuff=(that other) more=woevva
|
||||
>}
|
||||
>fn2 () {
|
||||
> typeset assignfirst=(why not)
|
||||
>}
|
||||
|
|
Loading…
Reference in a new issue