X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Matthew Woehlke <mw_triad@users.sourceforge.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@phx.gbl>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  8bit
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@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

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

