about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2017-03-27 11:57:50 +0100
committerPeter Stephenson <pws@zsh.org>2017-03-27 11:57:50 +0100
commit5a895a5260b62c70e4aafb2d6be0e677667886d2 (patch)
tree1a4970e95ac8990655123847e7ec4d06d5ad6f98
parentfc1fedda954e1d10d54253cd7ec0e1bfb6e0e989 (diff)
downloadzsh-5a895a5260b62c70e4aafb2d6be0e677667886d2.tar.gz
zsh-5a895a5260b62c70e4aafb2d6be0e677667886d2.tar.xz
zsh-5a895a5260b62c70e4aafb2d6be0e677667886d2.zip
40906: Add note on use of (k) parameter subst flag.
KSH_ARRAYS generlly requires [*] or [@] to operate on the whole
array and this is true here.
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/expn.yo4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 862e85b97..a94128ea2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-03-27  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* 40906: Doc/Zsh/expn.yo: array subst needs [*] or [@] with
+	KSH_ARRAYS.  Note this for (k) flag.
+
 2017-03-24  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* Alexandre Rames: 40878: Completion/Unix/Command/_stgit:
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index e049aa540..d161b0ba5 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -1049,7 +1049,9 @@ If var(name) refers to an associative array, substitute the em(keys)
 (element names) rather than the values of the elements.  Used with
 subscripts (including ordinary arrays), force indices or keys to be
 substituted even if the subscript form refers to values.  However,
-this flag may not be combined with subscript ranges.
+this flag may not be combined with subscript ranges.  With the
+tt(KSH_ARRAYS) option a subscript `tt([*])' or `tt([@])' is needed
+to operate on the whole array, as usual.
 )
 item(tt(L))(
 Convert all letters in the result to lower case.