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]

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


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/


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