Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: End Index number not what I expected
- X-seq: zsh-users 22182
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: End Index number not what I expected
- Date: Sat, 10 Dec 2016 14:56:13 +0000
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=d6WodvWn/21alSu oOW+algx6Pv4=; b=NZWL4zroM8rpgt0d2W+jKC3IL7QKzhafDNeEUoR29QsDUgS JJMUOwXGAbMnyMx/lWsSAoC3fIIIfCOc3OIul0XmyiA6fGud+o6df2IQlQ8nsBku kr3U2m2TLr9aw1+pCTWVAqS68g/iBD8BstfwgwJIngwhpWKB5rdP3h/H6jJg=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=d6WodvWn/21alS uoOW+algx6Pv4=; b=Rap6CF1I9p8u1YX8hlJ1T4J1SEU1QncrQc0z2odyFckyJ8 MhUNyGKvu1eqUBHvWYAQ8VlHBNJX5TG0mLpEZF+AoaF8Hks19b4h5HKP3GAqAsXi lx7b8iImANtzZc5zlxJDAzllpr6LG4Wjco9JHDTLxc0NP8PPsBuUuwQJ99J3o=
- In-reply-to: <20161206201629.2970ef18__5617.78782071105$1481055469$gmane$org@ntlworld.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CA+rB6GLXS6Tmtki4ns2vejy_WU79UcmCZZzGYNX71d5+Znq5fg@mail.gmail.com> <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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author