From owner-freebsd-questions Thu Aug 26 22:58:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from awfulhak.org (dynamic-52.max1-du-ws.dialnetwork.pavilion.co.uk [212.74.8.52]) by hub.freebsd.org (Postfix) with ESMTP id 0F69B14D61 for ; Thu, 26 Aug 1999 22:58:23 -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 GAA13341; Fri, 27 Aug 1999 06:54:30 +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 GAA68309; Fri, 27 Aug 1999 06:57:53 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199908270557.GAA68309@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Greg Lehey Cc: Roelof Osinga , Patrick Seal , freebsd-questions@FreeBSD.ORG Subject: Re: Bash: space in cd arg bug? In-reply-to: Your message of "Wed, 25 Aug 1999 11:48:04 +0930." <19990825114804.E83273@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 27 Aug 1999 06:57:52 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Wednesday, 25 August 1999 at 4:04:39 +0200, Roelof Osinga wrote: > > Greg Lehey wrote: > >> > >> On Tuesday, 24 August 1999 at 21:30:27 -0400, Patrick Seal wrote: > >>> cd /usr/local/win/Program\ Files/ > >>> or > >>> cd "/usr/local/win/Program Files/" > >>> > >>> both work tcsh, csh, sh, but in bash they result in an error: > >>> bash: cd: /usr/local/win/Program: No such file or directory > >>> > >>> I can only think this is a bash bug, but it's so obvious it *should* have > >>> been fixed long ago. > >> > >> You'd think so, wouldn't you? > >> > >>> Is this happening to anyone else? > >> > >> Yes. I changed to zsh because of it. > > > > nisser:~$ mkdir "Program Files" > > > > zsh -> FOO=/C:/Program\ Files > zsh -> echo $FOO > /C:/Program Files > zsh -> cd $FOO > zsh -> pwd > /C:/Program Files > zsh -> cd > zsh -> bash > bash -> FOO=/C:/Program\ Files > bash -> echo $FOO > /C:/Program Files > bash -> cd $FOO > bash: cd: /C:/Program: No such file or directory > bash -> 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 ? IMHO, zsh is wrong. -- 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