From f094b5b461a941eed71b53c0e7c268ed959ad788 Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Fri, 9 Dec 2016 19:34:14 +0000
Subject: [PATCH] Document (E) parameter flag better.
It produces 1 more than any other use of an index for the
end of a match, helpfully.
---
ChangeLog | 5 +++++
Doc/Zsh/expn.yo | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index c35377cdc..31dbbb0a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-09 Peter Stephenson
+
+ * users/22161: Doc/Zsh/expn.yo: the (E) parameter flag is one
+ after every other use of indexing.
+
2016-12-09 Daniel Shahaf
* 40117: Doc/Zsh/compsys.yo, Src/input.c: Revert a hunk of
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 87ca7905d..cf4f69ea2 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -1394,7 +1394,8 @@ item(tt(B))(
Include the index of the beginning of the match in the result.
)
item(tt(E))(
-Include the index of the end of the match in the result.
+Include the index one character past the end of the match in the result
+(note this is inconsistent with other uses of parameter index).
)
item(tt(M))(
Include the matched portion in the result.