cygpath -m (and -w) sometimes emits multi-line names

Larry Hall lh-no-personal-replies-please@cygwin.com
Tue Feb 22 08:51:00 GMT 2005


At 02:17 PM 2/20/2005, you wrote:
>Manipluating the result of cygpath -m with shell tools is needlessly
>difficult.
>
>$ pwd
>/cygdrive/c/Program Files/Mozilla Firefox/defaults/profile
>$ cygpath -m `pwd`/bookmarks.htm | sed 's} }%20}g; s}^}file:///}'
>file:///c:/Program
>file:///Files/Mozilla
>file:///Firefox/defaults/profile/bookmarks.htm


Why not use this?


cygpath -m "`pwd`/bookmarks.htm" | sed 's} }%20}g; s}^}file:///}'



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
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/



More information about the Cygwin mailing list