Subject: [Solved!] Re: [Workaround] Re: M-x shell + bash = Infinite error messages?
From: [email-masked] (Paul Stodghill)

17 Dec 1997 16:53:27 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
To: [email-masked]
Cc: [email-masked]

Andrew Innes said:
> On 16 Dec 1997 13:44:45 -0500, Paul Stodghill <[email-masked]> said:
> >I figured out what was causing my problem:
> 
> [problem was bash crashing when run in an Emacs shell buffer]
> 
> >I was invoking emacs by using a command similar to,
> >
> >  bash -c "runemacs ... some options ..."
> >
> >Changing the command to simply
> >
> >  runemacs ... some options ...
> >
> >made by M-x shell problems go away.
> >
> >Why?
> 
> runemacs starts Emacs then exits, so possibly an environment variable is
> being set by bash which is passed on to Emacs, causing confusion later.

Bingo! The environment variable in question is PID. Setting PID (either by
using bash to invoke runemacs, or by M-x setenv) causes M-x shell to die a
horrible death.

Adding

	(setenv "PID" nil)

to my ~/.emacs fixes the problem.

Thanks for your help!

-- 
Paul Stodghill <[email-masked]>
http://www.cs.cornell.edu/home/stodghil/home.html
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".