From owner-freebsd-questions Tue Aug 24 19:13: 7 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mailgw02.execpc.com (mailgw02.execpc.com [169.207.3.78]) by hub.freebsd.org (Postfix) with ESMTP id 2342C15240 for ; Tue, 24 Aug 1999 19:13:00 -0700 (PDT) (envelope-from hamilton@pobox.com) Received: from woodstock.monkey.net (bacrana-2-166.mdm.mkt.execpc.com [169.207.67.168]) by mailgw02.execpc.com (8.9.1) id VAA00750; Tue, 24 Aug 1999 21:11:36 -0500 Received: from pobox.com (localhost [127.0.0.1]) by woodstock.monkey.net (Postfix) with ESMTP id 41BB711; Tue, 24 Aug 1999 21:12:01 -0500 (CDT) To: Patrick Seal Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Bash: space in cd arg bug? In-reply-to: Your message of "Tue, 24 Aug 1999 21:30:27 EDT." <19990824213027.A1375@hyperhost.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 24 Aug 1999 21:12:01 -0500 From: Jon Hamilton Message-Id: <19990825021201.41BB711@woodstock.monkey.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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