From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: zsh-users@zsh.org
Subject: Re: End Index number not what I expected
Date: Sat, 10 Dec 2016 14:56:13 +0000 [thread overview]
Message-ID: <20161210145613.GA5982@fujitsu.shahaf.local2> (raw)
In-Reply-To: <20161206201629.2970ef18__5617.78782071105$1481055469$gmane$org@ntlworld.com>
Peter Stephenson wrote on Tue, Dec 06, 2016 at 20:16:29 +0000:
> +++ b/Doc/Zsh/expn.yo
> @@ -1394,7 +1394,8 @@ item(tt(B))(
> 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).
Also:
diff --git a/Completion/Zsh/Context/_brace_parameter b/Completion/Zsh/Context/_brace_parameter
index e77d4c5..ae69f77 100644
--- a/Completion/Zsh/Context/_brace_parameter
+++ b/Completion/Zsh/Context/_brace_parameter
@@ -179,7 +179,7 @@ if [[ $PREFIX = *'${('[^\)]# ]]; then
"S:search substrings in #, %, / expressions"
"I:search <argument>th match in #, %, / expressions"
"B:include index of beginning of match in #, %, / expressions"
- "E:include index of end of match in #, %, / expressions"
+ "E:include index of one past end of match in #, %, / expressions"
"M:include matched portion in #, %, / expressions"
"N:include length of match in #, % expressions"
"R:include rest (unmatched portion) in #, %, / expressions"
I'll commit this now.
prev parent reply other threads:[~2016-12-10 14:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-06 17:09 Jim
2016-12-06 20:16 ` Peter Stephenson
[not found] ` <20161206201629.2970ef18__5617.78782071105$1481055469$gmane$org@ntlworld.com>
2016-12-10 14:56 ` Daniel Shahaf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161210145613.GA5982@fujitsu.shahaf.local2 \
--to=d.s@daniel.shahaf.name \
--cc=p.w.stephenson@ntlworld.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).