From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25795 invoked from network); 10 Jun 2007 08:20:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.0 (2007-05-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=no version=3.2.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 10 Jun 2007 08:20:16 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 97981 invoked from network); 10 Jun 2007 08:20:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Jun 2007 08:20:10 -0000 Received: (qmail 20414 invoked by alias); 10 Jun 2007 08:20:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23542 Received: (qmail 20405 invoked from network); 10 Jun 2007 08:20:06 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 10 Jun 2007 08:20:06 -0000 Received: (qmail 97677 invoked from network); 10 Jun 2007 08:20:06 -0000 Received: from vms048pub.verizon.net (206.46.252.48) by a.mx.sunsite.dk with SMTP; 10 Jun 2007 08:20:03 -0000 Received: from torch.brasslantern.com ([71.116.90.58]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JJE007MFV3YKNC1@vms048.mailsrvcs.net> for zsh-workers@sunsite.dk; Sun, 10 Jun 2007 03:19:11 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id l5A8J9Ks032439 for ; Sun, 10 Jun 2007 01:19:09 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id l5A8J9tr032438 for zsh-workers@sunsite.dk; Sun, 10 Jun 2007 01:19:09 -0700 Date: Sun, 10 Jun 2007 01:19:09 -0700 From: Bart Schaefer Subject: Re: Buglet in zsh perforce completion function In-reply-to: <070609185904.ZM32348@torch.brasslantern.com> To: zsh-workers@sunsite.dk (Zsh hackers list) Message-id: <070610011909.ZM32437@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <200706051812.l55ICXMM004955@news01.csr.com> <070609185904.ZM32348@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: Buglet in zsh perforce completion function" (Jun 9, 6:59pm) On Jun 9, 6:59pm, Bart Schaefer wrote: } } -W FILE-PREFIX } This string is a pathname that will be prepended to each of } the matches formed by the given WORDS together with any } prefix specified by the -p option to form a complete filename } for testing. Hence it is only useful if combined with the -f } flag, as the tests will not otherwise be performed. } } There isn't any -f option in your compadd, so the -W option is just } confusing. Ignore that, I misread "if combined" as "unless combined". I've had a bad cold for the last few days and probably shouldn't even be trying to think about stuff like this. This part, though ... } Also you've said that -p and -W are the same string, which } by my reading means [...] it would test for } the file "$dir/$dir/..." which can't possibly be what you mean. ... still stands.