From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 777 invoked by alias); 10 Dec 2016 14:59:12 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22182 Received: (qmail 8346 invoked from network); 10 Dec 2016 14:59:12 -0000 X-Qmail-Scanner-Diagnostics: from out4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.28):SA:0(-0.7/5.0):. Processed in 1.49718 secs); 10 Dec 2016 14:59:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) 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= X-ME-Sender: X-Sasl-enc: eGeAdDuTlk1lU+W8/OQb1gddk52YCs46u1RQJZ92LDm6 1481381943 Date: Sat, 10 Dec 2016 14:56:13 +0000 From: Daniel Shahaf To: Peter Stephenson Cc: zsh-users@zsh.org Subject: Re: End Index number not what I expected Message-ID: <20161210145613.GA5982@fujitsu.shahaf.local2> References: <20161206201629.2970ef18__5617.78782071105$1481055469$gmane$org@ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161206201629.2970ef18__5617.78782071105$1481055469$gmane$org@ntlworld.com> User-Agent: Mutt/1.5.23 (2014-03-12) 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 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.