delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/27/15:14:43

X-Spam-Check-By: sourceware.org
Date: Thu, 27 Jul 2006 15:14:29 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Why are Windows paths broken in make 3.81?
Message-ID: <20060727191428.GC1788@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <9c2aabaf0607211629u4e29ffa1w5f09b3d8e5a923fc AT mail DOT gmail DOT com> <e9rrqr$6ei$1 AT sea DOT gmane DOT org> <9c2aabaf0607260912n4d17a340j533a049565234c00 AT mail DOT gmail DOT com> <eab2gq$fbd$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <eab2gq$fbd$1@sea.gmane.org>
User-Agent: Mutt/1.5.11
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 Thu, Jul 27, 2006 at 02:00:41PM -0500, mwoehlke wrote:
>Michael Hirsch wrote:
>>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.
>
>Ah, that problem. There are two possible solutions. One is to write a 
>wrapper script for your Windows programs that will take the args, 
>translate them (using cygpath), and then invoke the actual program. The 
>other is to use 'cygpath' directly in your makefile, as needed.

One of the (so far unremarked upon) perl programs that I sent earlier
should work fairly well for translating paths.

>>It sounds like a silly question, but it isn't.  I tested, and yes, if
>>you have a directory named "c:" in Linux, make is broken on that
>>directory, too.  Since "c:" is a valid name in Linux (and POSIX, I
>>believe) I consider that a bug in make.  I'll have to report that to
>>GNU, as it is not a cygwin issue.  The error message on Linux is just
>>as incomprehensible as it is Cygwin, too, so at least I know who to
>>talk to about it.
>
>Right, that would be something to take up with the make author.
>However, as both CGF and Igor mentioned, ':' means something special to
>make, and so probably needs to be quoted/escaped/something.  There is
>probably a way to do this that works right now on make 3.81.

You have to quote the : with a backslash.  Inability to handle unquoted
colons is definitely not a bug in make.

cgf

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