X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1/7/m6n9rhvv3tiWMvCYTCo
Date: Tue, 24 Jul 2012 11:50:38 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Cygwin fresh install imports Windows PATH which includes spaces causing errors
Message-ID: <20120724155038.GD5572@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <BLU0-SMTP306681C203762B2074C0748CEDC0@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <BLU0-SMTP306681C203762B2074C0748CEDC0@phx.gbl>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Tue, Jul 24, 2012 at 05:31:54PM +0200, Aaron Schneider wrote:
>Fresh install of cygwin on c:\cygwin\ is including spaces in PATH, 
>causing that cannot execute common tasks,
>
>$ echo $PATH
>/usr/local/bin:/usr/bin:/cygdrive/c/Program Files (x86)/PC Connectivity 
>Solution:/cygdrive/c/Program Files (x86)/Common Files/Microsoft 
>Shared/Windows Live:/cygdrive/c/Windows/system32: and so on
>
>Example:
>$ make
>Can't find C:\Program on PATH.

The Cygwin version of make would not display "c:" anything.  That's not
a Cygwin path specification and it shouldn't even be possible for a
Cygwin program to see the Windows PATH environment variable.  You must
be running a non-cygwin make.  Spaces in the PATH are acceptable on both
Linux and Cygwin and Windows.

That said, however, make does not deal well with spaces in file
specifications.  If something is actually parsing a PATH environment
variable then it could cause problems.

cgf

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

