delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/26/15:05:44

X-Spam-Check-By: sourceware.org
Date: Wed, 26 Jul 2006 15:05:27 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Why are Windows paths broken in make 3.81?
In-Reply-To: <20060726162609.GA24491@trixie.casa.cgf.cx>
Message-ID: <Pine.GSO.4.63.0607261504210.21105@access1.cims.nyu.edu>
References: <9c2aabaf0607211629u4e29ffa1w5f09b3d8e5a923fc AT mail DOT gmail DOT com> <e9rrqr$6ei$1 AT sea DOT gmane DOT org> <9c2aabaf0607260912n4d17a340j533a049565234c00 AT mail DOT gmail DOT com> <20060726162609 DOT GA24491 AT trixie DOT casa DOT cgf DOT cx>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Wed, 26 Jul 2006, Christopher Faylor wrote:

> On Wed, Jul 26, 2006 at 10:12:51AM -0600, Michael Hirsch wrote:
> >>Yes. See <http://cygwin.com/ml/cygwin-announce/2006-07/msg00008.html>.
> >>If you are using a POSIX-like "OS" (i.e. Cygwin), you should be using
> >>POSIX paths. That's not an inconvenience, that's called writing a bad
> >>makefile. If you aren't using Cygwin for the POSIX environment, you
> >>should be using MinGW.
> >
> >I see.  Unfortunately, I am trying to use cygwin to make my life
> >easier on Windows, but I am still constrained to use windows programs.
> >Many of them cannot use the cygwin paths, but require a path like
> >"c:/my/path.exe".  It will be very difficult to switch back and forth
> >between path representations.  I guess I do need to look into MinGW.
>
> Maybe someone here would be willing to post a sed transformation which
> would change c:\some\dos\path to /cygdrive/c/some/dos/path.

Here you go:

sed -e 's/\\/\\\\/g;s/^/cygpath /;e'

HTH.  ;-)
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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