bash & filenames with spaces

Larry Hall (RFK Partners, Inc)
Mon Apr 1 16:32:00 GMT 2002

At 07:15 PM 4/1/2002, Will Parsons wrote:
>Bash won't allow me to cd to a directory with a space in it.  The FAQ
>implies that all that is necessary is to escape the space, but whether
>I type (e.g.):
>cd /c/Program\ Files
>cd '/c/Program Files'
>I get a message:
>cd: Program: No such file or directory
>Am I missing something obvious here?

You're missing something but it's not obvious what it is.  Try a few 
variations on this, seeing if you can eliminate things like the mount 
table and so on.  Perhaps you want to run strace on bash to see if you can 
see where it has trouble.  Looking at the output of cygcheck -s -r -v might
help too.

Larry Hall                    
RFK Partners, Inc.            
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX

Unsubscribe info:
Bug reporting:

More information about the Cygwin mailing list