summary refs log tree commit diff
diff options
context:
space:
mode:
authordana <dana@dana.is>2018-01-19 23:06:47 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2018-01-19 23:06:47 -0800
commit0ce5ff2a873e9da503ffa88f00082a92e181b9e3 (patch)
treebf67c59a04423c589e74772e5dc54c50472b436b
parent4adb3c9fa78da03879e62d748307f78e1fce9c7d (diff)
downloadzsh-0ce5ff2a873e9da503ffa88f00082a92e181b9e3.tar.gz
zsh-0ce5ff2a873e9da503ffa88f00082a92e181b9e3.tar.xz
zsh-0ce5ff2a873e9da503ffa88f00082a92e181b9e3.zip
41924: (wi) subscript flag interaction
-rw-r--r--ChangeLog2
-rw-r--r--Doc/Zsh/params.yo6
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  <schaefer@zsh.org>
 
+	* 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