about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/params.yo4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2d003e8a5..610e7a7e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-04-12  dg1727  <dg1727@protonmail.com>
+
+	* 45661: Doc/Zsh/params.yo: docs: Clarify the effect of
+	KSH_ARRAYS on the (I) subscript.
+
 2020-04-09  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* 45660: Src/builtin,c, Src/init.c: Delay initial setting of
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo
index 8daf33d5e..8a6eb2446 100644
--- a/Doc/Zsh/params.yo
+++ b/Doc/Zsh/params.yo
@@ -399,6 +399,10 @@ Like `tt(i)', but gives the index of the last match, or all possible
 matching keys in an associative array.  On failure substitutes 0, or
 the empty string for an associative array.  This flag is best when
 testing for values or keys that do not exist.
+
+Note: If the option tt(KSH_ARRAYS) is in effect and no match is found, the
+result is indistinguishable from the case when the first element of the array
+matches.
 )
 item(tt(k))(
 If used in a subscript on an associative array, this flag causes the keys