X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Thu, 19 Aug 2010 15:59:59 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: "run" changes behavior with cygwin-17.6
Message-ID: <20100819135959.GA19001@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <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> <4C6D2FB5.5080601@cwilson.fastmail.fm>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <4C6D2FB5.5080601@cwilson.fastmail.fm>
User-Agent: Mutt/1.5.20 (2009-06-14)
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

On Aug 19 09:20, Charles Wilson wrote:
> 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

Oh, fixed.  I missed to upload the latest version of the file.  Sorry!
(I experimented with DocBook's segmentedlists and tables)

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

It's something completely different.

CW_SYNC_WINCWD is to sync the CWD.  But it's your choice, whether
           ^^^
you use CW_SYNC_WINCWD or just utilize the lpCurrentDirectory param
to CreateProcess.

> >   http://cygwin.com/cygwin-ug-net/setup-env.html#setup-env-win32
> 
> Thanks.

CW_SYNC_WINENV is for sync'ing the Win32 *environment* with the Cygwin
           ^^^
environment.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

