From: Harald Hanche-Olsen <hanche@math.ntnu.no>
To: thierry.volpiatto@gmail.com
Cc: emacs-devel@gnu.org
Subject: Re: getenv behavior or bug
Date: Mon, 28 Feb 2011 17:39:53 +0100 (CET) [thread overview]
Message-ID: <20110228.173953.1520547454256399731.hanche@math.ntnu.no> (raw)
In-Reply-To: <87vd04p1m3.fsf@gmail.com>
[Thierry Volpiatto <thierry.volpiatto@gmail.com> (2011-02-28 16:25:56 UTC)]
> (getenv "HOSTNAME") returns nil both on 23 and 24 branch, is this
> normal or a bug?
Emacs doesn't try to set this environment variable if it is not
already set. So presumably whatever process you use to start your
emacs from doesn't have it.
> In M-x shell, echo $HOSTNAME returns what expected, idem for uname -n.
I guess that is done somewhere in your shell startup files, or maybe
the global one. M-x shell runs a login shell after all.
- Harald
next prev parent reply other threads:[~2011-02-28 16:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-28 16:25 getenv behavior or bug Thierry Volpiatto
2011-02-28 16:38 ` Andreas Schwab
2011-02-28 16:39 ` Harald Hanche-Olsen [this message]
2011-02-28 18:03 ` Thierry Volpiatto
2011-02-28 18:33 ` Harald Hanche-Olsen
2011-02-28 22:18 ` Thierry Volpiatto
2011-03-01 19:40 ` Thierry Volpiatto
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110228.173953.1520547454256399731.hanche@math.ntnu.no \
--to=hanche@math.ntnu.no \
--cc=emacs-devel@gnu.org \
--cc=thierry.volpiatto@gmail.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.