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.