X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=0.2 required=5.0	tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <AANLkTin+tvW=ZEWggiwENxiKuN1tw6_ir+8mmmbYSXx3@mail.gmail.com>
References: <AANLkTimujP40m-LUQGZUs_pbGv0C24U3OcGt4HteVBkG@mail.gmail.com> <AANLkTin+tvW=ZEWggiwENxiKuN1tw6_ir+8mmmbYSXx3@mail.gmail.com>
From: Lennart Borgman <lennart.borgman@gmail.com>
Date: Fri, 3 Dec 2010 07:08:46 +0100
Message-ID: <AANLkTimvuwu9wFJxDXihjMfbdDw3wRyoq0oz3KqyPAJF@mail.gmail.com>
Subject: Re: Setting CHERE_INVOKING=1 does not work because of case mismatch
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Fri, Dec 3, 2010 at 6:51 AM, Andy Koppe <andy.koppe@gmail.com> 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:

  @echo off
  @rem Had to change chere_invoking in .profile to lower case.
  set CHERE_INVOKING=1
  C:\cygwin\bin\bash --login -i

Is there a better way to do it?

--
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

