diff options
| author | dana <dana@dana.is> | 2018-01-19 23:06:47 -0800 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2018-01-19 23:06:47 -0800 |
| commit | 0ce5ff2a873e9da503ffa88f00082a92e181b9e3 (patch) | |
| tree | bf67c59a04423c589e74772e5dc54c50472b436b /Doc/Zsh/params.yo | |
| parent | ChangeLog for abd00402 / 41839 (diff) | |
| download | zsh-0ce5ff2a873e9da503ffa88f00082a92e181b9e3.tar zsh-0ce5ff2a873e9da503ffa88f00082a92e181b9e3.tar.gz zsh-0ce5ff2a873e9da503ffa88f00082a92e181b9e3.tar.bz2 zsh-0ce5ff2a873e9da503ffa88f00082a92e181b9e3.tar.lz zsh-0ce5ff2a873e9da503ffa88f00082a92e181b9e3.tar.xz zsh-0ce5ff2a873e9da503ffa88f00082a92e181b9e3.tar.zst zsh-0ce5ff2a873e9da503ffa88f00082a92e181b9e3.zip | |
41924: (wi) subscript flag interaction
Diffstat (limited to 'Doc/Zsh/params.yo')
| -rw-r--r-- | Doc/Zsh/params.yo | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index bb5c8a54d..8a7fe5f5f 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -328,8 +328,10 @@ startitem() item(tt(w))( If the parameter subscripted is a scalar then this flag makes subscripting work on words instead of characters. The default word -separator is whitespace. This flag may not be used with the tt(i) or -tt(I) flag. +separator is whitespace. When combined with the tt(i) or tt(I) flag, +the effect is to produce the index of the first character of the +first/last word which matches the given pattern; note that a failed +match in this case always yields 0. ) item(tt(s:)var(string)tt(:))( This gives the var(string) that separates words (for use with the |
