Date: Tue, 24 Aug 1999 22:05:53 -0400 From: Patrick Seal <patseal@hyperhost.net> To: Greg Lehey <grog@lemis.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Bash: space in cd arg bug? Message-ID: <19990824220553.A3811@hyperhost.net> In-Reply-To: <19990825111131.C83273@freebie.lemis.com> References: <19990824213027.A1375@hyperhost.net> <19990825111131.C83273@freebie.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
<patseal@hyperhost.net> | 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990824220553.A3811>
