1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-23 04:51:12 +02:00

37845: Forward-reference typeset instances where no parameter is created, and remove the obsolete statement about array assignments separated from typeset command on -p.

This commit is contained in:
Barton E. Schaefer 2016-01-31 15:17:44 -08:00
parent 31d0bc1cdc
commit 0baf57701c
2 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,9 @@
2016-01-30 Barton E. Schaefer <schaefer@zsh.org> 2016-01-30 Barton E. Schaefer <schaefer@zsh.org>
* 37845: Doc/Zsh/builtins.yo: Forward-reference typeset instances
where no parameter is created, and remove the obsolete statement
about array assignments separated from typeset command on -p.
* 37844: Doc/Zsh/builtins.yo: reorder typeset introduction to keep * 37844: Doc/Zsh/builtins.yo: reorder typeset introduction to keep
related concepts together. related concepts together.

View file

@ -1753,7 +1753,8 @@ xitem(SPACES()[ tt(+) | var(SCALAR)[tt(=)var(value)] var(array)[tt(=LPAR())var(v
item(tt(typeset) tt(-f) [ {tt(PLUS())|tt(-)}tt(TUkmtuz) ] [ tt(+) ] [ var(name) ... ])( item(tt(typeset) tt(-f) [ {tt(PLUS())|tt(-)}tt(TUkmtuz) ] [ tt(+) ] [ var(name) ... ])(
Set or display attributes and values for shell parameters. Set or display attributes and values for shell parameters.
A parameter is created for each var(name) that does not already refer Except as noted below for control flags that change the behavior,
a parameter is created for each var(name) that does not already refer
to one. When inside a function, a new parameter is created for every to one. When inside a function, a new parameter is created for every
var(name) (even those that already exist), and is unset again when the var(name) (even those that already exist), and is unset again when the
function completes. See function completes. See
@ -1909,8 +1910,7 @@ does not.
) )
item(tt(-p))( item(tt(-p))(
If the tt(-p) option is given, parameters and values are printed in the If the tt(-p) option is given, parameters and values are printed in the
form of a typeset command and an assignment (which will be printed form of a typeset command with an assignment, regardless of other flags
separately for arrays and associative arrays), regardless of other flags
and options. Note that the tt(-H) flag on parameters is respected; no and options. Note that the tt(-H) flag on parameters is respected; no
value will be shown for these parameters. value will be shown for these parameters.