delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/08/24/03:50:49

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=Q0tI99+CozKSVMSx
FE4g/u0FunGSJiz9wrR5VR7hl8RtzqWAGHzCYPyOo5ptce9Puh6XMKHwpSJSopbx
0QUK7qh6LW/t3LHXqkPfn/6OdfK2U88FUGpeq7OuFbquhOW7AxDk34OOg0BQo9Xc
tyGlUr+Cm35+/LwvDis3OYtUs28=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=5dt+kheWRqXdChxUdZgWYQ
wc3zo=; b=MGLZTk9HngRMVrPcrRMSqewlXYq+C+VggbGiK0KhHLjMy3NpFvbi9s
KwjOiuNp5scFsTig/YLymWW1scE5rRWvyMrK2hG3O2SZPMKu6bfyK+V9mmathcHH
6WX014VEhXl3xBT3I+VNqO2KSrn5xx/2u7J9iqIUKtie9VmGfjREc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Sun, 24 Aug 2014 11:36:14 +0400
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <472694791.20140824113614@yandex.ru>
To: Michelle Pace <michelle AT michellepace DOT com>, cygwin AT cygwin DOT com
Subject: Re: Deafult to bash so $chere will work (possibly?)
In-Reply-To: <CAKQqby=MkB1N+mbnQMkbxOK0DcU+SXjRSX_ntC2nPVtDsaUxmg@mail.gmail.com>
References: <CAKQqby=MkB1N+mbnQMkbxOK0DcU+SXjRSX_ntC2nPVtDsaUxmg AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

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 AT yandex DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019