about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@ipost.com>2021-04-10 12:22:43 -0700
committerBart Schaefer <schaefer@ipost.com>2021-04-13 21:18:35 -0700
commit0793ce4e61290d15ee7e53c15a2b8425e20c806c (patch)
treee60c02283983a61287a013dcb548d0250fc63515
parentfbc1125316b07ddc9d51fa032fffc5b09b98f2ac (diff)
downloadzsh-0793ce4e61290d15ee7e53c15a2b8425e20c806c.tar.gz
zsh-0793ce4e61290d15ee7e53c15a2b8425e20c806c.tar.xz
zsh-0793ce4e61290d15ee7e53c15a2b8425e20c806c.zip
unposted (cf. 48469): document oddness of ${emptystr[(i)]}.
-rw-r--r--Doc/Zsh/params.yo5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo
index 36c1ae4c2..a9044336f 100644
--- a/Doc/Zsh/params.yo
+++ b/Doc/Zsh/params.yo
@@ -393,6 +393,11 @@ is compared to the pattern, and the first matching key found is the
 result.  On failure substitutes the length of the array plus one, as
 discussed under the description of `tt(r)', or the empty string for an
 associative array.
+
+Note: Although `tt(i)' may be applied to a scalar substitution to find
+the offset of a substring, the results are likely to be misleading when
+searching within substitutions that yield an empty string, or when
+searching for the empty substring.
 )
 item(tt(I))(
 Like `tt(i)', but gives the index of the last match, or all possible