Date: Tue, 24 Aug 1999 21:12:01 -0500 From: Jon Hamilton <hamilton@pobox.com> To: Patrick Seal <patseal@hyperhost.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Bash: space in cd arg bug? Message-ID: <19990825021201.41BB711@woodstock.monkey.net> In-Reply-To: Your message of "Tue, 24 Aug 1999 21:30:27 EDT." <19990824213027.A1375@hyperhost.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <19990824213027.A1375@hyperhost.net>, 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. } } Is this happening to anyone else? Are you sure you don't have a function or alias for cd which is biting you? I don't see this behavior: [1482] hamilton@woodstock /tmp$ mkdir 'my directory name with spaces' [1483] hamilton@woodstock /tmp$ ls -ld 'my directory name with spaces' drwxr-xr-x 2 hamilton wheel 512 Aug 24 21:03 my directory name with spaces [1484] hamilton@woodstock /tmp$ cd my\ directory\ name\ with\ spaces [1485] hamilton@woodstock my\ directory\ name\ with\ spaces$ pwd /tmp/my directory name with spaces [1486] hamilton@woodstock my\ directory\ name\ with\ spaces$ cd .. [1487] hamilton@woodstock /tmp$ cd "my directory name with spaces" [1488] hamilton@woodstock my\ directory\ name\ with\ spaces$ pwd /tmp/my directory name with spaces [1489] hamilton@woodstock my\ directory\ name\ with\ spaces$ echo $BASH_VERSION 2.02.0(1)-release I also tried specifying the full path to cd, which also behaved well, aside from the ugly backslashes in the display of the current directory. -- Jon Hamilton hamilton@pobox.com 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?19990825021201.41BB711>
