[Top][All Lists]

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

Re: Emacs shell support

From: Oleksandr Gavenko
Subject: Re: Emacs shell support
Date: Wed, 27 Oct 2010 09:55:59 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20101013 Thunderbird/3.1.5

On 27.10.2010 5:47, Kevin Rodgers wrote:
On 10/26/10 12:31 AM, Raju Tatti wrote:
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
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

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.

Really you can not transfer env variable from subprocess to parent.

But if you really want you can invoke 'set' command in shell and save output
in file which can be accessed by Emacs.

reply via email to

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