From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3970 invoked by alias); 27 Oct 2016 05:58:12 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39737 Received: (qmail 10762 invoked from network); 27 Oct 2016 05:58:12 -0000 X-Qmail-Scanner-Diagnostics: from rcpt-expgw.biglobe.ne.jp 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(133.208.98.1):SA:0(-1.3/5.0):. Processed in 0.317785 secs); 27 Oct 2016 05:58: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=-1.3 required=5.0 tests=RP_MATCHES_RCVD,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: takimoto-j@kba.biglobe.ne.jp X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at spf01.biglobe.ne.jp designates 133.208.98.1 as permitted sender) X-Biglobe-Sender: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: [PATCH] Completion: audit 'compset -P' calls to use shortest match where applicable, plus random drive-by tweaks. From: "Jun T." In-Reply-To: <1475084797-17029-1-git-send-email-danielsh@fujitsu.shahaf.local2> Date: Thu, 27 Oct 2016 14:58:04 +0900 Content-Transfer-Encoding: 7bit Message-Id: <64326837-5810-4AD1-A4BA-CE8487BF1F39@kba.biglobe.ne.jp> References: <1475084797-17029-1-git-send-email-danielsh@fujitsu.shahaf.local2> To: "zsh-workers@zsh.org" X-Mailer: Apple Mail (2.1510) X-Biglobe-Spnum: 52995 Sorry for not responding quickly. On 2016/09/29, at 2:46, Daniel Shahaf wrote: > --- a/Completion/Unix/Command/_head > +++ b/Completion/Unix/Command/_head > @@ -32,7 +32,7 @@ case $state in (snip) > - if compset -P '*[0-9]'; then > + if compset -P '[0-9]##'; then What is intended by this patch? With this, the following completes nothing: $ head -n -5 Same for _tail.