X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-ID: <4C6D2FB5.5080601@cwilson.fastmail.fm>
Date: Thu, 19 Aug 2010 09:20:53 -0400
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: "run" changes behavior with cygwin-17.6
References: <20100818182412.GA22698@ednor.casa.cgf.cx> <AANLkTikBTgg9M=xuZ4S2VkNU+Zr=hy3C=_Tr8BPj5baD@mail.gmail.com> <20100818185421.GC22698@ednor.casa.cgf.cx> <20100818191340.GB11340@calimero.vinschen.de> <20100818191906.GD22698@ednor.casa.cgf.cx> <20100818192238.GA27567@ednor.casa.cgf.cx> <20100818193446.GC11340@calimero.vinschen.de> <20100818194152.GE11340@calimero.vinschen.de> <4C6C39A8.6000402@cwilson.fastmail.fm> <20100818201745.GH11340@calimero.vinschen.de> <20100819104833.GU11340@calimero.vinschen.de>
In-Reply-To: <20100819104833.GU11340@calimero.vinschen.de>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

On 8/19/2010 6:48 AM, Corinna Vinschen wrote:
> I applied the patch which adds the CW_SYNC_WINCWD code and I updated
> the documentation accordingly.
> 
> I uploaded the rewritten chapter about using the Win32 file API here:
> 
>   http://cygwin.de/cygwin-ug-177/using.html#pathnames-win32-api
> 
> Please have a look.

The commentary about the errno values is duplicated. Other than that, it
seems clear.  I have one question, specifically as it relates to
run/run2/cygstart: these apps use CreateProcess.  In the documentation,
you say:

> If you need a valid Win32 CWD only for a child application started
> via CreateProcess and friends, you don't have to set your own Win32
> CWD. In that case, just utilize the lpCurrentDirectory parameter. See
> the description of the CreateProcess  function in the MSDN manual
> pages.

But earlier in this thread, you suggested that run/run2/cygstart should
use the new CW_SYNC_WINENV.  Which is it?

> As for the documentation about CW_SYNC_WINENV, it's already in the
> "official" docs at
> 
>   http://cygwin.com/cygwin-ug-net/setup-env.html#setup-env-win32

Thanks.

--
Chuck

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

