delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/03/07:39:16

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49D6035F.2090406@cwilson.fastmail.fm>
Date: Fri, 03 Apr 2009 08:38:55 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: compilation with cygport spoiled by spaces in pathnames?
References: <200904030957 DOT n339vS2x000719 AT mail DOT bln1 DOT bf DOT nsn-intra DOT net>
In-Reply-To: <200904030957.n339vS2x000719@mail.bln1.bf.nsn-intra.net>
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

Thomas Wolff wrote:

> Is this a generic problem? From the make output, it's not clear which program 
> actually raised the problem ("Can't find c:\Program on PATH.") - gcc, mv, rm?
> I had the impression that spaces in path names (which unfortunately do occur 
> under Windows) are usually handled properly.

No, spaces are NOT usually handled "properly" in the way you mean.

OTOH, they ARE handled "properly" if by "properly" you mean "treated as
separators between words". This is just ONE of the reasons why EVERYBODY
and their sister says "Spaces are DUMB. You're just asking for trouble.
Don't do it if you want to use cmdline tools -- like cygwin"

I'm sorry to say that mixing spaces into Cygwin paths is never going to
work smoothly; there are just too many unix-derived entities that rely
on the spaces-separate-words behavior.  To change them all would
be...more trouble than it is worth.  And there's already a workaound:
mount any external paths that embed spaces:

mount [options] C:/Programs\ Files /program_files

--
Chuck

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