1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-28 16:15:02 +01:00

unposted (cf. 48469): document oddness of ${emptystr[(i)]}.

This commit is contained in:
Bart Schaefer 2021-04-10 12:22:43 -07:00
parent fbc1125316
commit 0793ce4e61

View file

@ -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