delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/20/15:00:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <cygwin AT cygwin DOT com>
Message-Id: <6.2.0.14.0.20050220145157.0321fa60@pop.prospeed.net>
Date: Sun, 20 Feb 2005 14:52:47 -0500
To: Raul Miller <moth AT magenta DOT com>, cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019