X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <380-220108318145158645@cantv.net> References: <380-220108318145158645 AT cantv DOT net> Date: Wed, 18 Aug 2010 16:51:21 +0100 Message-ID: Subject: Re: "run" changes behavior with cygwin-17.6 From: Andy Koppe To: rodmedina AT cantv DOT net, cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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 18 August 2010 15:51, Rodrigo Medina wrote: > After upgrading to cygwin17.6 the program run changes behavior. > For example: > If I start mintty with the followin .bat > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 AT echo off > =C2=A0 =C2=A0 =C2=A0 =C2=A0C: > =C2=A0 =C2=A0 =C2=A0 =C2=A0chdir \cygwin\bin > =C2=A0 =C2=A0 =C2=A0 =C2=A0run mintty -e '/bin/bash' --login -i > =C2=A0 =C2=A0 =C2=A0 =C2=A0exit > > In the mintty window that is started appears the following message: > > /bin/find: failed to restore initial working directory: No such file or > directory You can invoke mintty with the cmd.exe built-in 'start' instead of 'run'. Even better, just invoke it directly from a shortcut rather than from a .bat script, which also avoids a console window flashing up briefly. The 'mintty' package in setup.exe automatically creates a suitable shortcut under Cygwin in the start menu. Andy -- 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