[Top][All Lists]

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

Re: getenv behavior or bug

From: Thierry Volpiatto
Subject: Re: getenv behavior or bug
Date: Mon, 28 Feb 2011 19:03:13 +0100
User-agent: Gnus/5.110014 (No Gnus v0.14) Emacs/23.2.94 (gnu/linux)

Harald Hanche-Olsen <address@hidden> writes:

> [Thierry Volpiatto <address@hidden> (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.
Thanks for answer,
So what's the environment variables emacs set on startup?

>> 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

A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 

reply via email to

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