delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4D45AAD7.80807@gmail.com> |
Date: | Sun, 30 Jan 2011 18:15:51 +0000 |
From: | Dave Korn <dave DOT korn DOT cygwin AT gmail DOT com> |
User-Agent: | Thunderbird 2.0.0.17 (Windows/20080914) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: PATH with spaces |
References: | <30799162 DOT post AT talk DOT nabble DOT com> <4D456012 DOT 5030107 AT aol DOT com> |
In-Reply-To: | <4D456012.5030107@aol.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 30/01/2011 12:56, Tim Prince wrote: > On 1/30/2011 6:34 AM, Sunoki wrote: >> >> $ make >> cygwin warning: >> MS-DOS style path detected: /usr/local/bin/C:\Program >> Preferred POSIX equivalent is: /usr/local/bin/C:/Program >> CYGWIN environment variable option "nodosfilewarning" turns off this >> warning. >> Consult the user's guide for more details about POSIX paths: >> http://cygwin.com/cygwin-ug-net/using.html#using-pathnames >> Can't find C:\Program on PATH. > Yes, the warning comes about in part due to the use of an unquoted path > with spaces. Not directly it doesn't. My PATH has spaces in it and everything works just fine. The shell knows to only separate $PATH at colons. That "Can't find" error message doesn't look like anything make itself would output to me, and how did /usr/local/bin get concatenated to C:\Program anyway? (Note that it doesn't have a trailing slash in the path, so something has done this deliberately.) I think the problem is likely to be that the makefile itself is doing some kind of string processing on the PATH, or perhaps that it is being passed on a commandline somewhere unquoted and ending up looking like multiple words to the receiving program. Sunoki, if that isn't enough of a clue to work out what's going wrong, there's a really useful version of make with a source-level debugger built in called 'remake' that you can get from http://bashdb.sourceforge.net/remake/. (Last time I checked, it was a straightforward "configure && make && make install" to build out-of-the-box, so it should be easy to try out if you want.) cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |