From 956d35ef12a061ec41396b1e0469bd166f6ef007 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sat, 15 Feb 2014 13:49:26 -0800 Subject: 32388: zparseopts -K preserves individual associative array elements --- Doc/Zsh/mod_zutil.yo | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Doc/Zsh/mod_zutil.yo') 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 -- cgit 1.4.1