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

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
From: "Roman Adar" <radar AT cacheware DOT com>
To: <ehud AT unix DOT simonwiesel DOT co DOT il>
Cc: <Help-gnu-emacs AT gnu DOT org>, <cygwin AT cygwin DOT com>
Subject: RE: How to make cygwin/bash shell work in emacs
Date: Mon, 1 Oct 2001 21:20:27 -0700
Message-ID: <NMEHIGJBPAKOAODKKENBCEFOCDAA.radar@cacheware.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
In-Reply-To: <200110020157.DAA13431@linux.>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700

Ehud

Adding the: (setenv "BASH_ENV" "/etc/profile") to my .emacs file did not
solve the problem of the path, where the "perl" is picked from. It still
stays /usr/bin.

Thanks

Roman

-----Original Message-----
From: Ehud Karni [mailto:ehud AT unix DOT simonwiesel DOT co DOT il]
Sent: Monday, October 01, 2001 6:57 PM
To: Roman Adar
Cc: Help-gnu-emacs AT gnu DOT org; cygwin AT cygwin DOT com
Subject: Re: How to make cygwin/bash shell work in emacs


On Mon, 1 Oct 2001 18:14:44 -0700, Roman Adar <radar AT cacheware DOT com> wrote:
>
> I'm still having a minor problem. The Perl I'm running from the "cygwin"
> command line is the ActiveState Perl. I've modified the /etc/profile file
to
> look 1st in the c:/Program Files/bin directory. However when I do "which
> perl" in the shell within emacs, the shell that is invoked is the "cygwin"
> Perl, from the /usr/bin directory. This is what I do not want.
>
> So my question is how do I force also in the shell that is spawned in the
> emacs to invoke the correct Perl.

From the Bash man page:
       Non-login interactive shells:
         On startup (subject to the -norc and -rcfile options):
               if ~/.bashrc exists, source it.

       Non-interactive shells:
         On startup:
               if the environment variable ENV is non-null, expand
               it and source the file it names, as if the command
                       if [ "$ENV" ]; then . $ENV; fi
               had been executed, but do not use PATH to search
               for the pathname.  When not started in Posix mode, bash
               looks for BASH_ENV before ENV.


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

[ This is really Bash/Cygwin problem not Emacs, so I cross post ]


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