X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 19 Aug 2010 15:59:59 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: "run" changes behavior with cygwin-17.6 Message-ID: <20100819135959.GA19001@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20100818185421 DOT GC22698 AT ednor DOT casa DOT cgf DOT cx> <20100818191340 DOT GB11340 AT calimero DOT vinschen DOT de> <20100818191906 DOT GD22698 AT ednor DOT casa DOT cgf DOT cx> <20100818192238 DOT GA27567 AT ednor DOT casa DOT cgf DOT cx> <20100818193446 DOT GC11340 AT calimero DOT vinschen DOT de> <20100818194152 DOT GE11340 AT calimero DOT vinschen DOT de> <4C6C39A8 DOT 6000402 AT cwilson DOT fastmail DOT fm> <20100818201745 DOT GH11340 AT calimero DOT vinschen DOT de> <20100819104833 DOT GU11340 AT calimero DOT vinschen DOT de> <4C6D2FB5 DOT 5080601 AT cwilson DOT fastmail DOT 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 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 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