* shell environment variables
@ 2003-10-10 13:56 Harter, Douglas
0 siblings, 0 replies; 2+ messages in thread
From: Harter, Douglas @ 2003-10-10 13:56 UTC (permalink / raw)
Ran into a minor problem. I have a Perl program in emacs. In the shell I create a new environment variable (properly exported, of course). I do an
M-x perldb to run the program. I cannot get the value of that new environment variable when the program runs.
Apparently the emacs environment that the perldb runs in does not update the external environment variables. Can it be done manually with an emacs command or automatically with a customization variable?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: shell environment variables
[not found] <mailman.1484.1065794937.21628.help-gnu-emacs@gnu.org>
@ 2003-10-10 15:05 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2003-10-10 15:05 UTC (permalink / raw)
> Ran into a minor problem. I have a Perl program in emacs. In the shell
^^^
I see no reason to assume there's only one shell.
> I create a new environment variable (properly exported, of course). I do
> an M-x perldb to run the program. I cannot get the value of that new
> environment variable when the program runs.
"the" shell is probably not the shell from which you started Emacs.
Each and every process has its own set of environment variables and
they are only copied from parent to child when a process is spawned.
If you use M-x setenv from Emacs, things should work better.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-10 15:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-10 13:56 shell environment variables Harter, Douglas
[not found] <mailman.1484.1065794937.21628.help-gnu-emacs@gnu.org>
2003-10-10 15:05 ` Stefan Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).