This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cygpath -u doesn't seem to convert spaces properly


I am trying to use cygpath -u to convert my windows path to an unix path in my shell script. However, it has problems with paths that has spaces in it. For example, "cygpath -u c:\Program Files\Java" is converted to
/cygdrive/c/Program Files/Java, which doesn't work. Is there a flag that I am missing?


I came up with the following, but it seems wrong.

$ cygpath -u "$(cygpath -m -s "c:\Program Files\Java")"
/cygdrive/c/PROGRA~1/Java

Thanks,

Jerome


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]