mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-01 18:30:55 +01:00
unposted: fix other typeset doc errors
This commit is contained in:
parent
6558ab611b
commit
22ad56296d
2 changed files with 16 additions and 10 deletions
|
|
@ -1,5 +1,7 @@
|
|||
2015-01-28 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* unposted: Doc/Zsh/builtins.yo: fix other typeset doc errors
|
||||
|
||||
* 34421: Doc/Zsh/builtins.yo: clean up typeset documentation
|
||||
|
||||
2015-01-28 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||
|
|
|
|||
|
|
@ -1714,6 +1714,15 @@ those parameters that have the specified attributes, and using `tt(PLUS())'
|
|||
rather than `tt(-)' to introduce the flag suppresses printing of the values
|
||||
of parameters when there is no parameter name.
|
||||
|
||||
If no attribute flags are given, and either no var(name) arguments are
|
||||
present or the flag tt(+m) is used, then each parameter name printed is
|
||||
preceded by a list of the attributes of that parameter (tt(array),
|
||||
tt(association), tt(exported), tt(float), tt(integer), tt(readonly),
|
||||
or tt(undefined) for autoloaded parameters not yet loaded). If tt(+m) is
|
||||
used with attribute flags, and all those flags are introduced with
|
||||
tt(PLUS()), the matching parameter names are printed but their values
|
||||
are not.
|
||||
|
||||
The following control flags change the behavior of tt(typeset):
|
||||
|
||||
startitem()
|
||||
|
|
@ -1728,7 +1737,7 @@ equivalent to `tt(typeset +U)' and displays the names of all arrays having
|
|||
the uniqueness attribute, whereas `tt(typeset -f -U PLUS())' displays the
|
||||
names of all autoloadable functions. If tt(PLUS()) is the only option,
|
||||
then type information (array, readonly, etc.) is also printed for each
|
||||
parameter.
|
||||
parameter, in the same manner as `tt(typeset +m "*")'.
|
||||
)
|
||||
item(tt(-g))(
|
||||
The tt(-g) (global) means that any resulting parameter will not be
|
||||
|
|
@ -1751,8 +1760,10 @@ created for every matching parameter that is not already local. Otherwise
|
|||
tt(-m) applies all other flags or assignments to the existing parameters.
|
||||
|
||||
Except when assignments are made with var(name)tt(=)var(value), using
|
||||
tt(+m) forces the matching parameters to be printed, even inside a
|
||||
function. Note that tt(-m) is ignored if no patterns are given.
|
||||
tt(+m) forces the matching parameters and their attributes to be printed,
|
||||
even inside a function. Note that tt(-m) is ignored if no patterns are
|
||||
given, so `tt(typeset -m)' displays attributes but `tt(typeset -a +m)'
|
||||
does not.
|
||||
)
|
||||
item(tt(-p))(
|
||||
If the tt(-p) option is given, parameters and values are printed in the
|
||||
|
|
@ -1790,13 +1801,6 @@ as before but the separator is changed.
|
|||
)
|
||||
enditem()
|
||||
|
||||
If no attribute flags are given and either no tt(-m) flag is present or
|
||||
the tt(+m) form was used, each parameter name printed is preceded by a
|
||||
list of the attributes of that parameter (tt(array), tt(association),
|
||||
tt(exported), tt(integer), tt(readonly)). If tt(+m) is used with attribute
|
||||
flags, and all those flags are introduced with tt(PLUS()), the matching
|
||||
parameter names are printed but their values are not.
|
||||
|
||||
Attribute flags that transform the final value (tt(-L), tt(-R), tt(-Z),
|
||||
tt(-l), tt(u)) are only applied to the expanded value at the point
|
||||
of a parameter expansion expression using `tt($)'. They are not applied
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue