diff options
author | Bart Schaefer <schaefer@ipost.com> | 2021-04-10 12:22:43 -0700 |
---|---|---|
committer | Bart Schaefer <schaefer@ipost.com> | 2021-04-10 14:12:29 -0700 |
commit | 13f85796ac15c871cf760f6415424f4f96c0a460 (patch) | |
tree | 8a5aca42a1f058c85206439b6d417d668a4f6795 | |
parent | fd89e7cefa4d3806f3f469d5ad4b496d130305a6 (diff) | |
download | zsh-13f85796ac15c871cf760f6415424f4f96c0a460.tar.gz zsh-13f85796ac15c871cf760f6415424f4f96c0a460.tar.xz zsh-13f85796ac15c871cf760f6415424f4f96c0a460.zip |
unposted (cf. 48469): document oddness of ${emptystr[(i)]}.
-rw-r--r-- | Doc/Zsh/params.yo | 5 |
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 |