X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_YG,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 3 Dec 2010 12:27:57 +0000 Message-ID: Subject: Re: Setting CHERE_INVOKING=1 does not work because of case mismatch From: Andy Koppe To: 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 3 December 2010 06:08, Lennart Borgman wrote: > On Fri, Dec 3, 2010 at 6:51 AM, Andy Koppe wrote: >> On 2 December 2010 22:31, Lennart Borgman wrote: >>> In current cygwin (just updated) I need to downcase the test for >>> CHERE_INVOKING in .profile to make it work >> >> To make what work? >> >> /bin/xhere, the part of the chere package that cd's to the required >> directory and invokes the user's shell, sets CHERE_INVOKING in >> uppercase, as it always has done. > > I am using this to start Cygwin from a cmd prompt: > > =C2=A0 AT echo off > =C2=A0 AT rem Had to change chere_invoking in .profile to lower case. > =C2=A0set CHERE_INVOKING=3D1 > =C2=A0C:\cygwin\bin\bash --login -i That works fine for me: it does start bash without changing the current directory. I can't think of any reason why CHERE_INVOKING would be converted to lowercase. How did you verify that that is what's happening? Also, cygcheck output as requested at http://cygwin.com/problems.html might provide clues. 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