This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygpath -m (and -w) sometimes emits multi-line names
- From: Larry Hall <lh-no-personal-replies-please at cygwin dot com>
- To: Raul Miller <moth at magenta dot com>, cygwin at cygwin dot com
- Date: Sun, 20 Feb 2005 14:52:47 -0500
- Subject: Re: cygpath -m (and -w) sometimes emits multi-line names
- References: <20050220141724.I32136@links.magenta.com>
- Reply-to: Cygwin List <cygwin at cygwin dot com>
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/