pathname with spaces causes problems for tcsh

Chris Faylor
Tue Mar 21 13:37:00 GMT 2000

On Tue, Mar 21, 2000 at 04:09:26PM -0500, Christos Zoulas wrote:
>On Mar 21, 12:52pm, (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.


Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list