From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11396 invoked from network); 10 Sep 2009 15:08:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) 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.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 10 Sep 2009 15:08:30 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 91044 invoked from network); 10 Sep 2009 15:07:52 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Sep 2009 15:07:52 -0000 Received: (qmail 25711 invoked by alias); 10 Sep 2009 15:07:45 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27262 Received: (qmail 25681 invoked from network); 10 Sep 2009 15:07:43 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 10 Sep 2009 15:07:43 -0000 Received: from QMTA09.westchester.pa.mail.comcast.net (qmta09.westchester.pa.mail.comcast.net [76.96.62.96]) by bifrost.dotsrc.org (Postfix) with ESMTP id 5796C8043ADF for ; Thu, 10 Sep 2009 17:07:30 +0200 (CEST) Received: from OMTA06.westchester.pa.mail.comcast.net ([76.96.62.51]) by QMTA09.westchester.pa.mail.comcast.net with comcast id ezzt1c00516LCl05937Ul5; Thu, 10 Sep 2009 15:07:28 +0000 Received: from smtp.klanderman.net ([98.217.254.247]) by OMTA06.westchester.pa.mail.comcast.net with comcast id f37S1c00D5M2Np63S37S0s; Thu, 10 Sep 2009 15:07:28 +0000 Received: from lwm.klanderman.net (unknown [192.168.100.50]) by smtp.klanderman.net (Postfix) with ESMTP id 614B5B3015C; Thu, 10 Sep 2009 11:07:25 -0400 (EDT) Received: by lwm.klanderman.net (Postfix, from userid 500) id 3DF529FC5F3; Thu, 10 Sep 2009 11:07:25 -0400 (EDT) From: Greg Klanderman To: zsh-workers@sunsite.dk Subject: Re: file completion of ~user/... stats wrong directory Reply-To: gak@klanderman.net Date: Thu, 10 Sep 2009 11:07:25 -0400 In-Reply-To: (Greg Klanderman's message of "Wed, 09 Sep 2009 00:32:48 -0400") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.17 (linux) References: <19030.11925.370937.608524@gargle.gargle.HOWL> <20090710100721.56b0874c@news01> <200907101421.n6AELWFS028008@news01.csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.94.2/9791/Thu Sep 10 03:03:33 2009 on bifrost X-Virus-Status: Clean >>>>> On September 9, 2009 Greg Klanderman wrote: > Looks like this is being caused by the 'accept-exact-dirs' logic in > _path_files: Attached below is the one line fix. greg Index: Completion/Unix/Type/_path_files =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_path_files,v retrieving revision 1.47 diff -u -r1.47 _path_files --- Completion/Unix/Type/_path_files 5 Aug 2009 00:46:45 -0000 1.47 +++ Completion/Unix/Type/_path_files 10 Sep 2009 15:04:23 -0000 @@ -355,7 +355,7 @@ tmp1=$match[1] tpre=$match[2] while true; do - if [[ -d $donepath$tmp1 ]]; then + if [[ -d $prepath$realpath$donepath$tmp1 ]]; then donepath=$donepath$tmp1/ pre=$tpre break