I've been having trouble moving to directories with spaces in the name, but it I just figured it was a problem with Cygwin and worked around it.
Then I found that I could create symbolic links to those directories which made me maybe think it wasn't Cygwin. Then I remembered I created an alias for cd
that would list the directory contents and saw this:
cdls { cd $1; ls; }
alias cd='cdls'
So the problem is when I try this it fails:
$ cd /cygdrive/c/Program\ Files/
bash: cd: /cygdrive/c/Program: No such file or directory
I can see that the space is causing the path to be split into multiple arguments, but how do I join them together again?