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 --- ChangeLog | 2 ++ Doc/Zsh/params.yo | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 211fbb33f..7fd0e5409 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2018-01-19 Barton E. Schaefer + * dana: 41924: Doc/Zsh/params.yo: (wi) subscript flag interaction + * Sebastian Gniazdowski: 41839: Functions/Misc/allopt: force IFS to default for "read" 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