From owner-freebsd-questions Mon Aug 30 19: 1:54 1999 Delivered-To: freebsd-questions@freebsd.org Received: from awfulhak.org (dynamic-56.max1-du-ws.dialnetwork.pavilion.co.uk [212.74.8.56]) by hub.freebsd.org (Postfix) with ESMTP id D542E153AE for ; Mon, 30 Aug 1999 19:01:47 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (root@keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id AAA28719; Tue, 31 Aug 1999 00:35:21 +0100 (BST) (envelope-from brian@lan.awfulhak.org) Received: from keep.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id AAA09780; Tue, 31 Aug 1999 00:02:20 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199908302302.AAA09780@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Greg Lehey Cc: Brian Somers , Roelof Osinga , Patrick Seal , freebsd-questions@FreeBSD.ORG Subject: Re: Bash: space in cd arg bug? In-reply-to: Your message of "Fri, 27 Aug 1999 15:32:44 +0930." <19990827153243.V483@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 31 Aug 1999 00:02:20 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [.....] > > You missed the > > > > zsh -> echo $FOO > > /C:/Program Files > > zsh -> mkdir $FOO > > > > Which makes two directories. Why should ``cd'' behave differently > > from an external command - just because it's a builtin ? > > It shouldn't. > > > IMHO, zsh is wrong. > > Agreed. And bash does exactly the same thing in this case. Someone said that ``cd $FOO'' was being interpreted as ``cd "Program Files"'' (two words) rather than as ``cd Program Files'' (three words). The correct interpretation (which is the same as bash's interpretation) is as three words. Of course the fact that bash ignores any args after the first when interpreting ``cd'' is somewhat dodgy :-/ > Greg > -- > See complete headers for address, home page and phone numbers > finger grog@lemis.com for PGP public key -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message