From 0ce5ff2a873e9da503ffa88f00082a92e181b9e3 Mon Sep 17 00:00:00 2001 From: dana Date: Fri, 19 Jan 2018 23:06:47 -0800 Subject: 41924: (wi) subscript flag interaction --- Doc/Zsh/params.yo | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Doc/Zsh/params.yo') 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 -- cgit 1.4.1