help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs shell support


From: Kevin Rodgers
Subject: Re: Emacs shell support
Date: Tue, 26 Oct 2010 20:47:19 -0600
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5

On 10/26/10 12:31 AM, Raju Tatti wrote:
Hi,
I use Emacs extensivelly. When we inovke the emacs from terminal, emacs will get
the all environment variable of parent terminal.
If we inovke shell in emacs and set some environment variables locally by
sourcing scripts or alias command, the opening a file using these environment
varialbe using $ doesn't work.
What needs to be done to make emacs to see this locally set env.

The shell invoked by M-x shell is a child process than the emacs process,
and modifying the environment of a child process will not affect the parent
process.

If you want to modify the environment of the emacs process, use setenv
in ~/.emacs.

That will also affect any child processes, including shells, invoked after
the environment variable was set.

--
Kevin Rodgers
Denver, Colorado, USA




reply via email to

[Prev in Thread] Current Thread [Next in Thread]