From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: reading environment variables
Date: Thu, 03 Jan 2008 20:24:31 -0500 [thread overview]
Message-ID: <barmar-B41D0F.20243103012008@comcast.dca.giganews.com> (raw)
In-Reply-To: 9q1w8znwho.fsf@aquin.mat.univie.ac.at
In article <9q1w8znwho.fsf@aquin.mat.univie.ac.at>,
Martin Rubey <axiomize@yahoo.de> wrote:
> Dear gnu emacs gurus,
>
> I'm trying to get hold of an environment variable a process sets that I'm
> starting with make-comint.
>
> I know of getenv, but that doesn't seem to do the right thing: as far as I can
> see it only knows about variables that affect emacs, rather than a given
> process.
>
> Unfortunately, the value of this variable decides how emacs will communicate
> with the subprocess, therefore I cannot really ask the process about the
> value... Well, maybe I can somehow, but I'm hoping for an easy way.
I don't think there's any general mechanism to look up variables in
another process's environment. This is a limitation in most OSes, not
anything particular to Emacs.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
next prev parent reply other threads:[~2008-01-04 1:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-03 8:28 reading environment variables Martin Rubey
2008-01-04 1:24 ` Barry Margolin [this message]
2008-01-06 8:41 ` Tim X
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=barmar-B41D0F.20243103012008@comcast.dca.giganews.com \
--to=barmar@alum.mit.edu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).