cygpath and spaces in filenames when reading from a file

Jon Beniston jon@beniston.com
Tue Dec 29 17:15:00 GMT 2009


Hi,

cygpath can read a list of paths to convert from a file, when started with
-file. However, how do you specify paths with spaces in them in this mode?
It seems quoting the path or using \ doesn't seem to work. E.g:

$cygpath --windows --file -
"/usr/local/my dir/"
"\usr\local\my
dir\"

$ cygpath --windows --file -
/usr/local/my\ dir/
C:\cygwin\usr\local\my\
dir\

Cheers,
Jon





--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list