From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8938 invoked from network); 22 Jun 2008 22:24:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Jun 2008 22:24:26 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 12690 invoked from network); 22 Jun 2008 22:24:15 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Jun 2008 22:24:15 -0000 Received: (qmail 13772 invoked by alias); 22 Jun 2008 22:24:11 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25235 Received: (qmail 13756 invoked from network); 22 Jun 2008 22:24:10 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 22 Jun 2008 22:24:10 -0000 Received: from mtaout01-winn.ispmail.ntl.com (mtaout01-winn.ispmail.ntl.com [81.103.221.47]) by bifrost.dotsrc.org (Postfix) with ESMTP id 0CBD980524FD for ; Mon, 23 Jun 2008 00:24:06 +0200 (CEST) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20080622222832.RIV28496.mtaout01-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com>; Sun, 22 Jun 2008 23:28:32 +0100 Received: from pws-pc ([81.107.40.67]) by aamtaout04-winn.ispmail.ntl.com with ESMTP id <20080622222413.BPXC18637.aamtaout04-winn.ispmail.ntl.com@pws-pc>; Sun, 22 Jun 2008 23:24:13 +0100 Date: Sun, 22 Jun 2008 23:23:42 +0100 From: Peter Stephenson To: zsh-workers@sunsite.dk Cc: 486785@bugs.debian.org Subject: Re: Bug#486785: tab completion broken Message-ID: <20080622232342.756e9d4b@pws-pc> In-Reply-To: <20080619211539.GA5218@scru.org> References: <20080619211539.GA5218@scru.org> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.10; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.92.1/7536/Sun Jun 22 23:10:41 2008 on bifrost X-Virus-Status: Clean On Thu, 19 Jun 2008 21:15:39 +0000 Clint Adams wrote: > Using only the following zshrc, ls /tmp/.X2 results in the entire > argument being elided (/tmp/.X* exists but /tmp/.X2* does not). > > --8<--zshrc--8<-- > autoload -U compinit > compinit > > zstyle ':completion:*' completer _approximate > > --8<--zshrc--8<-- It's something to do with using the -U argument to compadd when you've got ambiguous completions: it works fine when there's only a single completion. It was triggered by adding the -U's to do approximation in non-final path segments (even before the compmatch change). The initial "." is a red herring. However, I don't know where it's going wrong since when I do approximation after normal completion (but lots of other options set, too) it works fine. This triggers a different part of _path_files which has compadd -U but slight differences in the other arguments. Internally the Cline struct that's used for generating the command line looks a bit spartan in the failed case. Needless to say I haven't the faintest clue where this is leading. pws