Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Wed, 11 May 2005 23:32:07 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Fixing strace and cygcheck so that they work with mount -X Message-ID: <20050512033206.GC25511@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com References: <427FB7B2 DOT 8040903 AT mscha DOT nl> <20050510151746 DOT GV15665 AT trixie DOT casa DOT cgf DOT cx> <42822503 DOT 2090903 AT mscha DOT org> <20050511154036 DOT GD10119 AT trixie DOT casa DOT cgf DOT cx> <20050511165354 DOT GA15412 AT trixie DOT casa DOT cgf DOT cx> <428255DA DOT 4030907 AT acm DOT org> <42828A27 DOT 5050206 AT mscha DOT org> <42829A20 DOT 2030209 AT acm DOT org> <20050512025729 DOT GB25511 AT trixie DOT casa DOT cgf DOT cx> <4282CB5B DOT 4000203 AT acm DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4282CB5B.4000203@acm.org> User-Agent: Mutt/1.5.8i On Wed, May 11, 2005 at 08:19:55PM -0700, David Rothenberger wrote: >On 5/11/2005 7:57 PM, Christopher Faylor wrote: >> On Wed, May 11, 2005 at 04:49:52PM -0700, David Rothenberger wrote: >>>On 5/11/2005 3:41 PM, Michael Schaap wrote: >>>>(At first I was a bit suspicious of the logic - it only sets those >>>>Windows variables that are not currently set, so what about variables >>>>that were changed or deleted within Cygwin? - but it looks like the >>>>Windows environment isn't the standard pre-Cygwin user environment, but >>>>a minimal one with only PATH and SYSTEMROOT set, so it actually does >>>>behave optimally this way - it sets all other variables when running >>>>under mount -X, and sets nothing otherwise.) >>> >>>Right. The main reason I did that, though, was because copying the >>>Cygwin PATH to the Windows environment caused lots of core dumps. >> >>You're going to have to convert the PATH to windows form before adding >>it to the environment. > >Well, I think that problem is avoided because the patch only copies >variables from the cygwin environment if they're not already in the >Windows environment, and PATH is already in the Windows environment. Aha. You're right. The PATH has been previously converted by whatever started cygstart so it should be ok. At least in Cygwin 1.5.16. cgf -- 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/