From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24053 invoked from network); 9 Jul 2009 17:54:02 -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; 9 Jul 2009 17:54:02 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 38812 invoked from network); 9 Jul 2009 17:53:54 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Jul 2009 17:53:54 -0000 Received: (qmail 16225 invoked by alias); 9 Jul 2009 17:53:45 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27108 Received: (qmail 16195 invoked from network); 9 Jul 2009 17:53:43 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 9 Jul 2009 17:53: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 66CF180307FB for ; Thu, 9 Jul 2009 19:53:26 +0200 (CEST) Received: from OMTA16.westchester.pa.mail.comcast.net ([76.96.62.88]) by QMTA09.westchester.pa.mail.comcast.net with comcast id DoT01c0021uE5Es59ttTSe; Thu, 09 Jul 2009 17:53:27 +0000 Received: from smtp.klanderman.net ([98.217.254.247]) by OMTA16.westchester.pa.mail.comcast.net with comcast id DtvE1c0085M2Np63ctvEMk; Thu, 09 Jul 2009 17:55:14 +0000 Received: from lwm.klanderman.net (unknown [192.168.100.50]) by smtp.klanderman.net (Postfix) with ESMTP id 88EB4B30144 for ; Thu, 9 Jul 2009 13:53:25 -0400 (EDT) Received: by lwm.klanderman.net (Postfix, from userid 500) id 749579FC61C; Thu, 9 Jul 2009 13:53:25 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19030.11925.370937.608524@gargle.gargle.HOWL> Date: Thu, 9 Jul 2009 13:53:25 -0400 From: Greg Klanderman To: Zsh list Subject: file completion of ~user/... stats wrong directory Reply-To: gak@klanderman.net X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid X-Virus-Scanned: ClamAV 0.94.2/9551/Thu Jul 9 15:22:08 2009 on bifrost X-Virus-Status: Clean Hi, In looking into some completion anomalies, I've noticed that strace output shows it stat'ing the wrong path when you are completing a path that starts with ~user/.. If you complete ~user/foo/bar, you see it stat the paths "foo/bar" and then "foo" relative to the current directory. This seems broken; even if those paths exist relative to the current directory, it is irrelevant to completing under ~user. It seems to recover in most cases and generate the right completions despite this, the only problem this seems to be causing is with our netapp's .snapshot directories. Looking at _path_files, I'm guessing it has something to do with setting prepaths=( '' ) in the logic dealing with ~ prefixed strings. But I don't understand what prepaths is supposed to be doing. It worries me a bit that it is set to that same value in a number of other cases. Maybe it should be setting prepaths=() instead? I'm running out of a nearly up-to-date cvs checkout (_path_files is up to date at least). thanks, Greg