This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Deafult to bash so $chere will work (possibly?)
- From: Michelle Pace <michelle at michellepace dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 24 Aug 2014 12:02:30 +0200
- Subject: Re: Deafult to bash so $chere will work (possibly?)
- Authentication-results: sourceware.org; auth=none
- References: <CAKQqby=MkB1N+mbnQMkbxOK0DcU+SXjRSX_ntC2nPVtDsaUxmg at mail dot gmail dot com> <472694791 dot 20140824113614 at yandex dot ru>
HOORAY! Thanks Andrey, this command worked for me:
$ chere -i -t mintty -s bash
DAYS of trying to figure this out. Thank-you!
Michelle
PS No problems about the english - it's better than my Russian :)
On 24 August 2014 09:36, Andrey Repin <anrdaemon@yandex.ru> wrote:
> Greetings, Michelle Pace!
>
>> I would like Cygwin in the context menu of my Windows 7 machine (I
>> have admin rights).
>
>> I'm not sure really why the chere command is not working
>
> It works as long as you get the context menu entry after it's invocation.
>
>> since I've just read "sh is actually really bash"
>
> That's right, it IS bash in Cygwin, but...
>
>> and my .bashrc file is definitely getting used. Additionally there is
>> nothing in my passwd file as I thought I should just replace "sh" with
>> "bash". Finally, setting $SHELL to /bin/bash also did not work.
>
> The devil is in the details. When you don't explicitly call bash, it is
> getting called as /bin/sh and fall back to POSIX compatibility mode.
>
>> QUESTION: Could anyone please point out what I need to do to get my
>> chere command working?
>
> Simple answer: you're doing it wrong. But that's not enough - you're not
> reading/ignoring what the tool tell you.
>
>> -----------------------------------------------------------------------------------------------------------
>> My Story
>> -----------------------------------------------------------------------------------------------------------
>> $ chere -i -t mintty
>> Shell defaulting to sh defined for MP
>> /usr/bin/chere Error: Unknown shell sh
>
> chere -t mintty -s bash
> or -s /bin/bash, I dunno...
>
>
> --
> WBR,
> Andrey Repin (anrdaemon@yandex.ru) 24.08.2014, <11:32>
>
> Sorry for my terrible english...
>
--
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