diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2014-02-15 13:49:26 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2014-02-15 13:49:26 -0800 |
commit | 956d35ef12a061ec41396b1e0469bd166f6ef007 (patch) | |
tree | c0c11543b53c91aadd6fcd4ab854cb902251508e /Doc/Zsh | |
parent | ae0b56cdda382732abc7c657e14f36a1e3d4d302 (diff) | |
download | zsh-956d35ef12a061ec41396b1e0469bd166f6ef007.tar.gz zsh-956d35ef12a061ec41396b1e0469bd166f6ef007.tar.xz zsh-956d35ef12a061ec41396b1e0469bd166f6ef007.zip |
32388: zparseopts -K preserves individual associative array elements
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/mod_zutil.yo | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Doc/Zsh/mod_zutil.yo b/Doc/Zsh/mod_zutil.yo index 726b0f055..ee9ec3adf 100644 --- a/Doc/Zsh/mod_zutil.yo +++ b/Doc/Zsh/mod_zutil.yo @@ -251,10 +251,12 @@ any not described by the var(specs). This is similar to using the tt(shift) builtin. ) item(tt(-K))( -With this option, the arrays specified with the tt(-a) and tt(-A) -options and with the `tt(=)var(array)' forms are kept unchanged when none -of the var(specs) for them is used. This allows assignment of default -values to them before calling tt(zparseopts). +With this option, the arrays specified with the tt(-a) option and with the +`tt(=)var(array)' forms are kept unchanged when none of the var(specs) for +them is used. Otherwise the entire array is replaced when any of the +var(specs) is used. Individual elements of associative arrays specified +with the tt(-A) option are preserved by tt(-K). This allows assignment of +default values to arrays before calling tt(zparseopts). ) item(tt(-M))( This changes the assignment rules to implement a map among equivalent |