delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/02/18:00:16

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 2 Oct 2001 23:48:12 +0200
Message-Id: <200110022148.XAA20608@linux.>
From: "Ehud Karni" <ehud AT unix DOT simonwiesel DOT co DOT il>
To: "Chet Ramey" <chet AT nike DOT ins DOT cwru DOT edu>
Subject: Re: How to make cygwin/bash shell work in emacs
CC: radar AT cacheware DOT com, cygwin AT cygwin DOT com
In-reply-to: <011002211140.AA44252.SM@nike.ins.cwru.edu> (message from Chet
Ramey on Tue, 2 Oct 2001 17:11:40 -0400)
Organization: Mivtach-Simon Insurance agencies
Reply-to: ehud AT unix DOT simonwiesel DOT co DOT il
References: <011002211140 DOT AA44252 DOT SM AT nike DOT ins DOT cwru DOT edu>
X-Mailer: Emacs 20.7.1 rmail (send-msg 1.105)
MIME-Version: 1.0

On Tue, 2 Oct 2001 17:11:40 -0400, Chet Ramey <chet AT nike DOT ins DOT cwru DOT edu> wrote:
> > 
> > Emacs starts Bash as "Non-login interactive shells". To make thing
> > easier I suggest you set "BASH_ENV" to "/etc/profile" in ~/.emacs:
> >     (setenv "BASH_ENV" "/etc/profile")
> 
> I don't see how you can possibly expect this to do anything, since the
> portion of the manual page you quoted says explicitly that BASH_ENV is
> only interpreted by *non-interactive* shells, and  you claim that emacs
> starts bash as a non-login *interactive* shell.
> 
> (I don't use emacs, so I don't know if your claim is correct.)
 
Emacs start "Non-login interactive shells" when you start a sub-shell.
(this is bash -i).
It start a "non-interactive" shell (i.e. commands interpreter) for any
external command and in this case it uses the BASH_ENV.
(this is bash command arg1 arg2 .....).

Ehud.


-- 
 Ehud Karni     Mivtach - Simon  Insurance   /"\
 Tel: +972-3-7966-561 Fax: +972-3-7966-667   \ /  ASCII Ribbon Campaign
 (USA) Fax and  voice  mail: 1-815-5509341    X   Against  HTML  Mail
     Better     Safe     Than     Sorry      / \
     mailto:ehud AT unix DOT simonwiesel DOT co DOT il    http://www.simonwiesel.co.il

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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