Setting CHERE_INVOKING=1 does not work because of case mismatch

Andy Koppe
Fri Dec 3 12:28:00 GMT 2010

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:
>  @echo off
>  @rem Had to change chere_invoking in .profile to lower case.
>  C:\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
might provide clues.


Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list