From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8747 invoked from network); 10 Jun 2007 01:59:30 -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 01:59:30 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 70974 invoked from network); 10 Jun 2007 01:59:24 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Jun 2007 01:59:24 -0000 Received: (qmail 27226 invoked by alias); 10 Jun 2007 01:59:18 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23541 Received: (qmail 27216 invoked from network); 10 Jun 2007 01:59:16 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 10 Jun 2007 01:59:16 -0000 Received: (qmail 70735 invoked from network); 10 Jun 2007 01:59:16 -0000 Received: from vms044pub.verizon.net (206.46.252.44) by a.mx.sunsite.dk with SMTP; 10 Jun 2007 01:59:12 -0000 Received: from torch.brasslantern.com ([71.116.90.58]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JJE00K53DIG95H0@vms044.mailsrvcs.net> for zsh-workers@sunsite.dk; Sat, 09 Jun 2007 20:59:05 -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 l5A1x4BU032350 for ; Sat, 09 Jun 2007 18:59:04 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id l5A1x4Lj032349 for zsh-workers@sunsite.dk; Sat, 09 Jun 2007 18:59:04 -0700 Date: Sat, 09 Jun 2007 18:59:04 -0700 From: Bart Schaefer Subject: Re: Buglet in zsh perforce completion function In-reply-to: <200706051812.l55ICXMM004955@news01.csr.com> To: zsh-workers@sunsite.dk (Zsh hackers list) Message-id: <070609185904.ZM32348@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> Comments: In reply to Peter Stephenson "Re: Buglet in zsh perforce completion function" (Jun 5, 7:12pm) On Jun 5, 7:12pm, Peter Stephenson wrote: } } _tst() { _alternative "files:file:_path_files" "dots:dots:_tst1"; } } compdef _tst tst } } Before I simply try to work round this, does anyone have the first } clue what might be going on in the completion system to cause this? Not precisely, but note this (especially the last sentence): -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. Also you've said that -p and -W are the same string, which by my reading means that if there *were* a -f option it would test for the file "$dir/$dir/..." which can't possibly be what you mean.