From owner-freebsd-questions Tue Aug 24 19:13: 5 1999 Delivered-To: freebsd-questions@freebsd.org Received: from hyperhost.net (ether.lightrealm.com [207.159.132.5]) by hub.freebsd.org (Postfix) with ESMTP id 9C653152E7 for ; Tue, 24 Aug 1999 19:12:54 -0700 (PDT) (envelope-from patseal@hyperhost.net) Received: from foobar.foobar.yi.org (p1.a8.du.radix.net [207.192.132.129]) by hyperhost.net (8.8.5/8.8.5) with ESMTP id WAA21231; Tue, 24 Aug 1999 22:10:49 -0400 (EDT) Received: by foobar.foobar.yi.org (Postfix, from userid 1000) id 8391A137F36; Tue, 24 Aug 1999 22:05:53 -0400 (EDT) Date: Tue, 24 Aug 1999 22:05:53 -0400 From: Patrick Seal To: Greg Lehey Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Bash: space in cd arg bug? Message-ID: <19990824220553.A3811@hyperhost.net> References: <19990824213027.A1375@hyperhost.net> <19990825111131.C83273@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.7i In-Reply-To: <19990825111131.C83273@freebie.lemis.com> X-Operating-System: FreeBSD foobar.foobar.yi.org 3.2-STABLE FreeBSD 3.2-STABLE Organization: Hyperhost Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Aug 25, 1999 at 11:11:31AM +0930i, 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. > > Greg Actually I just found the problem. I had been using my own version of cd to change my rxvt title to the current directory: cd () { builtin cd "$@" echo -n "^[]2;xterm: $PWD^G" } I didn't have the quotes around $@ and that screwed it up. -- ------------------------------------ _____________________________________ Patrick Seal |"Microsoft isn't evil, they just make | really crappy operating systems." Hyperhost - http://www.hyperhost.net| -Linus Torvalds To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message