diff options
author | Clint Adams <clint@users.sourceforge.net> | 2004-03-08 16:57:26 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2004-03-08 16:57:26 +0000 |
commit | 3f7b447d88056cbbe524391d843591e28bef3384 (patch) | |
tree | 2a79f8e7f5d1131f1571f53817fe896b8243e4ed | |
parent | 02677cbdd64ae9591380610e6e4d013d7b5c156b (diff) | |
download | zsh-3f7b447d88056cbbe524391d843591e28bef3384.tar.gz zsh-3f7b447d88056cbbe524391d843591e28bef3384.tar.xz zsh-3f7b447d88056cbbe524391d843591e28bef3384.zip |
* 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.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Doc/Zsh/params.yo | 8 |
2 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index d47d8ceba..c83bfeac3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index f2f64c93c..ced7fb215 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -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 |