Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: "Roman Adar" <radar@cacheware.com>
To: <ehud@unix.simonwiesel.co.il>
Cc: "Chet Ramey" <chet@po.CWRU.Edu>, <cygwin@cygwin.com>
Subject: RE: How to make cygwin/bash shell work in emacs
Date: Tue, 2 Oct 2001 18:17:41 -0700
Message-ID: <NMEHIGJBPAKOAODKKENBOEGHCDAA.radar@cacheware.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: 7bit
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: <200110022218.AAA24579@linux.>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700

Ehud

I've tried the approach with the ".bashrc" file, but it creates other
problems. When I've the "set -x" still set for tracing I can see that it
loads the "shell" FOREVER, repeatedly. It never exits the load... statement.

It looks like the ".bashrc" file is the solution, but I also probably, need
to make some changes in my ".emacs" and the "/etc/profile" files. However
I'm not sure where and what.

I believe that at this point I'll invoke the perl explicitly with the full
path when I use it in the emacs sub-shell.

Thanks again for your help.

Roman

-----Original Message-----
From: Ehud Karni [mailto:ehud@unix.simonwiesel.co.il]
Sent: Tuesday, October 02, 2001 3:19 PM
To: Roman Adar
Cc: Chet Ramey; cygwin@cygwin.com
Subject: Re: How to make cygwin/bash shell work in emacs


On Tue, 2 Oct 2001 14:43:23 -0700, Roman Adar <radar@cacheware.com> wrote:
>
> When I'm in the shell in emacs I just type "perl file_name.pl <options>".
>
> Also another thing, maybe important. In the cygiwn shell I get the prompt:
>
> Administrator@ROME ~
> $
>
> (Where ROME is my machine name).
>
> While the shell in emacs shows:
>
> bash-2.05$

OK. That clarify the situation. I assumed INCORRECTLY that you run the
perl directly from your Emacs (not in sub-shell). In your case bash
executes ~/.bashrc, So if it does not exist create it and add the line:
    source /etc/profile
That should solve your problems.

You should keep the (setenv "Bash_ENV" "/etc/profile") for commands
executed directly from Emacs (like shell-command [M-!] or compilation).

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@unix.simonwiesel.co.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/

