X-Spam-Check-By: sourceware.org Message-ID: <457EDF3D.8090403@mscha.nl> Date: Tue, 12 Dec 2006 17:56:29 +0100 From: Michael Schaap Reply-To: cygwin AT cygwin DOT com User-Agent: Thunderbird 2.0b1 (Windows/20061206) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: cygstart getting The specified file was not found References: <457E0CB8 DOT 5070002 AT mscha DOT nl> <20061212082036 DOT GY9829 AT calimero DOT vinschen DOT de> <457EAD4F DOT 1000605 AT mscha DOT nl> <457EB1D6 DOT 7000908 AT mscha DOT nl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Igor Peshansky wrote: > I just looked at the ChangeLog between those two snapshots. The following > looks like the culprit change: > > 2006-11-29 Corinna Vinschen <(snip)> > > * path.cc [snip] > (cwdstuff::init): Initialize cygheap->cwd with current working > directory. Change to windows_system_directory afterwards. > > With that change, any use of non-Cygwin calls, e.g., GetCurrentDirectory, > or ShellExecute (which calls GetCurrentDirectory under the covers, it > seems) will produce the problem you're seeing (Windows system directory as > the current directory). > > So it looks like you ought to call cygwin_internal(CW_SYNC_WINENV) after > all, as it syncs more than the environment variables... > Indeed, this turns out to be the culprit. Thanks - also to Corinna - for helping to find this, - Michael -- 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/