mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-02 08:21:09 +01:00
* 19566: Doc/Zsh/params.yo: change associative array documentation to refer
to Parameter Expansion Flags rather than Subscript Flags. Wording by Frederik Eaton and Peter.
This commit is contained in:
parent
02677cbdd6
commit
3f7b447d88
2 changed files with 13 additions and 2 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2004-03-08 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 19566: Doc/Zsh/params.yo: change associative array
|
||||
documentation to refer to Parameter Expansion Flags
|
||||
rather than Subscript Flags. Wording by Frederik
|
||||
Eaton and Peter.
|
||||
|
||||
2004-03-08 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 19554: Src/pattern.c: improve users/7121 by allowing
|
||||
|
|
|
|||
|
|
@ -107,8 +107,12 @@ of an array; there is no difference between the two except when they
|
|||
appear within double quotes.
|
||||
`tt("$foo[*]")' evaluates to `tt("$foo[1] $foo[2] )...tt(")', whereas
|
||||
`tt("$foo[@]")' evaluates to `tt("$foo[1]" "$foo[2]" )...'. For
|
||||
associative arrays, `tt([*])' or `tt([@])' evaluate to all the values (not
|
||||
the keys, but see em(Subscript Flags) below), in no particular order.
|
||||
associative arrays, `tt([*])' or `tt([@])' evaluate to all the values,
|
||||
in no particular order. Note that this does not substitute
|
||||
the keys; see the documentation for the `tt(k)' flag under
|
||||
ifzman(em(Parameter Expansion Flags) in zmanref(zshexpn))\
|
||||
ifnzman(noderef(Parameter Expansion))
|
||||
for complete details.
|
||||
When an array parameter is referenced as `tt($)var(name)' (with no
|
||||
subscript) it evaluates to `tt($)var(name)tt([*])', unless the tt(KSH_ARRAYS)
|
||||
option is set in which case it evaluates to `tt(${)var(name)tt([0]})' (for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue