summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2016-12-09 19:34:14 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2016-12-09 19:34:14 +0000
commitf094b5b461a941eed71b53c0e7c268ed959ad788 (patch)
tree668e445879bec46e0d0bf000d93f1865cf0c589e
parent7e40a8905336a7f62e40d7095fa89b224a6f7a1f (diff)
downloadzsh-f094b5b461a941eed71b53c0e7c268ed959ad788.tar.gz
zsh-f094b5b461a941eed71b53c0e7c268ed959ad788.tar.xz
zsh-f094b5b461a941eed71b53c0e7c268ed959ad788.zip
Document (E) parameter flag better.
It produces 1 more than any other use of an index for the
end of a match, helpfully.
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/expn.yo3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c35377cdc..31dbbb0a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-09  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* users/22161: Doc/Zsh/expn.yo: the (E) parameter flag is one
+	after every other use of indexing.
+
 2016-12-09  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* 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.