delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/13/10:20:21

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Matthew Woehlke <mw_triad AT users DOT sourceforge DOT net>
Subject: Re: bug in cygwin_conv_to_posix_path() caused by period in win32 path
Date: Fri, 13 Jul 2007 09:19:49 -0500
Lines: 22
Message-ID: <f781m5$phu$1@sea.gmane.org>
References: <BAY137-F29D252E44164227F8AAD9693FD0 AT phx DOT gbl>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070509 Thunderbird/1.5.0.12 Mnenhy/0.7.4.0
In-Reply-To: <BAY137-F29D252E44164227F8AAD9693FD0@phx.gbl>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

(nonstandard quoting reformatted)

André Bleau wrote:
> Corinna Vinschen wrote:
>> (*) and, funny enough, there's no API call in Win32 to return a DCWD.
>> There's just a call GetCurrentDirectory() which returns *the* CWD.
>> Which makes sense, given that the RTL_USER_PROCESS_PARAMETERS can only
>> store one CWD per process.
> 
> Well, this is not surprising, as there is no such thing as a DCWD in 
> Windows. It is strictly a cmd thing. Try this: start 2 instances of cmd 
> in parallel:
> [snip]
> The "DCWD" is clearly independant for each cmd.

Well... duh. getcwd() is process-independent, why shouldn't dcwd be 
also? Nor should this be surprising since dcwd is "implemented" using 
environment variables; the environment is also per-process.

-- 
Matthew
.rorrim a ot pu rotinom ruoy dloh ,egassem siht daer oT


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