emacs-devel
[Top][All Lists]
Advanced

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

Re: getenv behavior or bug


From: Harald Hanche-Olsen
Subject: Re: getenv behavior or bug
Date: Mon, 28 Feb 2011 17:39:53 +0100 (CET)

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

> 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



reply via email to

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