From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3925 invoked from network); 7 May 2008 23:32:48 -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; 7 May 2008 23:32:48 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 85586 invoked from network); 7 May 2008 23:32:43 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 7 May 2008 23:32:43 -0000 Received: (qmail 10025 invoked by alias); 7 May 2008 23:32:40 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24970 Received: (qmail 10010 invoked from network); 7 May 2008 23:32:39 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 7 May 2008 23:32:39 -0000 Received: from prunille.vinc17.org (vinc17.pck.nerim.net [213.41.242.187]) by bifrost.dotsrc.org (Postfix) with ESMTP id B0A5480ED172 for ; Thu, 8 May 2008 01:32:34 +0200 (CEST) Received: by prunille.vinc17.org (Postfix, from userid 501) id B18D0223B658; Thu, 8 May 2008 01:32:34 +0200 (CEST) Date: Thu, 8 May 2008 01:32:34 +0200 From: Vincent Lefevre To: zsh-workers@sunsite.dk Subject: Bug in spell correction of directories for cd Message-ID: <20080507233234.GQ13554@prunille.vinc17.org> Mail-Followup-To: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.17-vl-r21552 (2008-04-09) X-Virus-Scanned: ClamAV 0.91.2/7052/Wed May 7 23:47:49 2008 on bifrost X-Virus-Status: Clean Hi, This has annoyed me from some time, but spell corrections of directories doesn't work correctly. I think it doesn't take the cdpath into account or something like that. For instance: prunille:~tmp> cd wd/db zsh: correct 'wd/db' to 'wc/b' [nyae]? y cd: not a directory: wc/b zsh: exit 1 prunille:~tmp[1]> cd wd/db zsh: correct 'wd/db' to 'wc/b' [nyae]? n ~/wd/db prunille:~/wd/db> Note that in ~tmp, there is a directory wc and a file b (which is not a directory) in wc. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)