cygwin and long filenames with spaces

Christopher Faylor cygwin@cygwin.com
Thu Aug 8 08:12:00 GMT 2002


On Thu, Aug 08, 2002 at 06:38:14AM -0700, Michael A Chase wrote:
>On Thu, 8 Aug 2002 14:12:51 +0100 Chris Game <chrisgame@bigfoot.com> wrote:
>
>> How can you pass long filenames which include spaces to cygwin/bash 
>> commands like 'ls' under MS-Windows? Neither escaping the spaces, nor 
>> enclosing the filename in single or double quotes seems to work. I 
>> have to use the old DOS style short filename like /cygdrive/Docume~
>> 1/... which can be a nuisance.
>
>Quoting the entire file specification or escaping the spaces with '\' are
>the normal ways that spaces in file or directory names are handled.  Can
>you send us the exact sequence of commands you are trying that are not
>working as you expece?

Quoting spaces with \ doesn't work from the command line on cygwin.  Quoting
the entire specification does, e.g.

ls -l "/cygdrive/c/Program Files"

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list