From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29843 invoked from network); 21 Dec 2005 10:27:08 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 21 Dec 2005 10:27:08 -0000 Received: (qmail 98166 invoked from network); 21 Dec 2005 10:27:02 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Dec 2005 10:27:02 -0000 Received: (qmail 8572 invoked by alias); 21 Dec 2005 10:27:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22102 Received: (qmail 8563 invoked from network); 21 Dec 2005 10:26:59 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 21 Dec 2005 10:26:59 -0000 Received: (qmail 97882 invoked from network); 21 Dec 2005 10:26:59 -0000 Received: from cluster-c.mailcontrol.com (HELO rly07c.srv.mailcontrol.com) (168.143.177.190) by a.mx.sunsite.dk with SMTP; 21 Dec 2005 10:26:58 -0000 Received: from exchange03.csr.com (uuk202166.uk.customer.alter.net [62.189.241.194] (may be forged)) by rly07c.srv.mailcontrol.com (MailControl) with ESMTP id jBLABIMJ024125 for ; Wed, 21 Dec 2005 10:26:55 GMT Received: from news01 ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 21 Dec 2005 10:22:00 +0000 Date: Wed, 21 Dec 2005 10:21:59 +0000 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: BUG: cd '' doesn't produce an error Message-Id: <20051221102159.44d9f5ca.pws@csr.com> In-Reply-To: <87zmmvxl3g.fsf@haugen.visit.se> References: <87zmmvxl3g.fsf@haugen.visit.se> Organization: Cambridge Silicon Radio X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Dec 2005 10:22:00.0262 (UTC) FILETIME=[60FA0E60:01C60618] X-Scanned-By: MailControl A-05-40-01 (www.mailcontrol.com) on 10.67.0.117 Ulrik Haugen wrote: > I recently discovered that zsh (versions 4.2.5 and 4.3.0-dev-1) > doesn't produce an error when i attempt to "cd ''" (in version 3.0.8 I > get the error i expected). Please let me know if you'd like me to test > any other versions. It's certainly strange, although it's not wholly illogical with $cdpath: as the empty string is not an absolute directory nor begins with . or .., the shell looks through $cdpath for the first directory for which the concatenation with the empty string exists, which is usually just the first directory in $cdpath. This is almost useful... It's easy to add an error but I'm not quite sure at what stage the behaviour actually is an error in this case: it's a correct, if unexpected, interpretation of the cdpath rules. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com