This is the mail archive of the
cygwin
mailing list for the Cygwin project.
cygpath and spaces in filenames when reading from a file
- From: "Jon Beniston" <jon at beniston dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 29 Dec 2009 17:11:13 -0000
- Subject: cygpath and spaces in filenames when reading from a file
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