From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16601 invoked from network); 21 May 2008 14:34:55 -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; 21 May 2008 14:34:55 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 7827 invoked from network); 21 May 2008 14:34:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 May 2008 14:34:47 -0000 Received: (qmail 7381 invoked by alias); 21 May 2008 14:34:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25079 Received: (qmail 7361 invoked from network); 21 May 2008 14:34:43 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 21 May 2008 14:34:43 -0000 Received: from vms173001pub.verizon.net (vms173001pub.verizon.net [206.46.173.1]) by bifrost.dotsrc.org (Postfix) with ESMTP id 81D5C805911A for ; Wed, 21 May 2008 16:34:39 +0200 (CEST) Received: from torch.brasslantern.com ([71.116.113.54]) by vms173001.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K18001NL351VTA3@vms173001.mailsrvcs.net> for zsh-workers@sunsite.dk; Wed, 21 May 2008 09:34:14 -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 m4LEYC3W011506 for ; Wed, 21 May 2008 07:34:12 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m4LEYCwW011505 for zsh-workers@sunsite.dk; Wed, 21 May 2008 07:34:12 -0700 Date: Wed, 21 May 2008 07:34:12 -0700 From: Bart Schaefer Subject: Completion/correction and _path_files To: zsh-workers@sunsite.dk Message-id: <080521073412.ZM11504@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.91.2/7197/Wed May 21 12:20:41 2008 on bifrost X-Virus-Status: Clean Starting in the root of the zsh source tree, if I do this: schaefer<501> ls Scr It gets corrected: schaefer<501> ls Src/ Completing corrections Src/ Completing original Scr If instead I start with: schaefer<502> ls s/a/m That too gets corrected (lower -> upper) and completed: schaefer<502> ls Src/Aliases/Makefile However, if I start with this: schaefer<502> ls Scr/ No matches for `files' or `corrections' Looking at _complete_debug output, _path_files appears to have found the correction and at line 372 populates tmp1 with all the files in the Src subdirectory, but then discards the "Src/" prefix from all those files at about line 669 and attempts to compare the files themselves to "Scr" (compfiles -r at line 514) which of course fails. This seems like a bug. At some earlier point "Src/" should have been added as a possible completion; the descent into the directory was not necessary. Even with schaefer<502> ls Scr/A No matches for `files' or `corrections' I *think* it's comparing "Aliases" to the entire string "Scr/A", but it begins to get difficult to follow.