From 6ec97e1d48d74371252c6c67a2076bc6b01a4084 Mon Sep 17 00:00:00 2001 From: dg1727 Date: Sun, 12 Apr 2020 01:26:25 +0000 Subject: 45661: docs: Clarify the effect of KSH_ARRAYS on the (I) subscript. --- Doc/Zsh/params.yo | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Doc') 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 -- cgit 1.4.1