Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: Cygwin List Message-Id: <6.2.0.14.0.20050220145157.0321fa60@pop.prospeed.net> Date: Sun, 20 Feb 2005 14:52:47 -0500 To: Raul Miller , cygwin AT cygwin DOT com From: Larry Hall Subject: Re: cygpath -m (and -w) sometimes emits multi-line names In-Reply-To: <20050220141724.I32136@links.magenta.com> References: <20050220141724 DOT I32136 AT links DOT magenta DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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/