diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2017-02-23 21:53:19 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2017-02-23 21:53:19 -0800 |
commit | db44b17150b05be43f5eff7e6cc5fe474fce5087 (patch) | |
tree | 8ec887eb8760c5229cc79f2b1832d7640e8324f4 /Doc/Zsh | |
parent | 12d950ba0cc345d047c94c9d94325dbfe47fc79d (diff) | |
download | zsh-db44b17150b05be43f5eff7e6cc5fe474fce5087.tar.gz zsh-db44b17150b05be43f5eff7e6cc5fe474fce5087.tar.xz zsh-db44b17150b05be43f5eff7e6cc5fe474fce5087.zip |
unposted (cf. 40617): clarify description of ${(A)name=value} and ${(AA)name=value}
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/expn.yo | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index cf4f69ea2..43ecd3155 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -955,15 +955,15 @@ This is distinct from em(field splitting) by the tt(f), tt(s) or tt(z) flags, which still applies within each array element. ) item(tt(A))( -Create an array parameter with `tt(${)...tt(=)...tt(})', +Assign as an array parameter with `tt(${)...tt(=)...tt(})', `tt(${)...tt(:=)...tt(})' or `tt(${)...tt(::=)...tt(})'. -If this flag is repeated (as in `tt(AA)'), create an associative +If this flag is repeated (as in `tt(AA)'), assign an associative array parameter. Assignment is made before sorting or padding; if field splitting is active, the var(word) part is split before assignment. The var(name) part may be a subscripted range for -ordinary arrays; the var(word) part em(must) be converted to -an array, for example by using `tt(${(AA)=)var(name)tt(=)...tt(})' -to activate field splitting, when creating an associative array. +ordinary arrays; when assigning an associative array, the var(word) +part em(must) be converted to an array, for example by using +`tt(${(AA)=)var(name)tt(=)...tt(})' to activate field splitting. ) item(tt(a))( Sort in array index order; when combined with `tt(O)' sort in reverse |