delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/21/16:38:38

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Tue, 21 Mar 2000 16:37:43 -0500
To: Cygwin <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: pathname with spaces causes problems for tcsh
Message-ID: <20000321163743.B21027@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: cgf AT cygnus DOT com, Cygwin <cygwin AT sourceware DOT cygnus DOT com>
References: <20000321205201 DOT 25071 DOT qmail AT web112 DOT yahoomail DOT com> <200003212109 DOT QAA25555 AT hrothgar DOT gw DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.1.8i
In-Reply-To: <200003212109.QAA25555@hrothgar.gw.com>; from christos@zoulas.com on Tue, Mar 21, 2000 at 04:09:26PM -0500

On Tue, Mar 21, 2000 at 04:09:26PM -0500, Christos Zoulas wrote:
>On Mar 21, 12:52pm, earnie_boyd AT yahoo DOT com (Earnie Boyd) wrote:
>-- Subject: Re: pathname with spaces causes problems for tcsh
>
>| Pathnames with spaces are a problem, period.  By the time that pushd got the
>| argument the backslashes had been removed and pushd passed to setenv more than
>| one argument thus the complaint.
>| 
>| You'll have to modify the source of tcsh to fix this problem.
>| 
>| Earnie.
>| 
>| P.S.: This problem would exist on UNIX if the directory contained spaces.
>
>No it would not. chdir("foo bar") works fine as well as
>setenv/putenv("foo bar", "bar baz"). The problem is in the way
>the interface call to the win32 setenv is implemented.

I'm not sure what you mean by "interface call" but it's not likely that cygwin
itself is doing something bad with environment variables with spaces in them.
There is no parsing to be done (besides possibly looking for an '=') by the
time the putenv or setenv is invoked by the DLL.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019