1
0
Fork 0
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:
Peter Stephenson 2015-06-24 14:32:15 +01:00
parent 39b28980f3
commit 7b46509e92
3 changed files with 17 additions and 0 deletions

View file

@ -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,

View file

@ -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);

View file

@ -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)
>}