X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Matthew Woehlke 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: References: 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: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/