From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: getenv behavior or bug Date: Mon, 28 Feb 2011 19:03:13 +0100 Message-ID: <87r5asox3y.fsf@gmail.com> References: <87vd04p1m3.fsf@gmail.com> <20110228.173953.1520547454256399731.hanche@math.ntnu.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298916328 29278 80.91.229.12 (28 Feb 2011 18:05:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2011 18:05:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Harald Hanche-Olsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 28 19:05:23 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pu7TE-0000Hd-3Z for ged-emacs-devel@m.gmane.org; Mon, 28 Feb 2011 19:05:20 +0100 Original-Received: from localhost ([127.0.0.1]:39692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu7TD-0008RP-GP for ged-emacs-devel@m.gmane.org; Mon, 28 Feb 2011 13:05:19 -0500 Original-Received: from [140.186.70.92] (port=38196 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu7T9-0008RJ-2W for emacs-devel@gnu.org; Mon, 28 Feb 2011 13:05:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pu7T7-0003ab-Se for emacs-devel@gnu.org; Mon, 28 Feb 2011 13:05:15 -0500 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:46236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pu7T7-0003aF-N5 for emacs-devel@gnu.org; Mon, 28 Feb 2011 13:05:13 -0500 Original-Received: by fxm5 with SMTP id 5so4649609fxm.0 for ; Mon, 28 Feb 2011 10:05:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=nzSu2Dyuq4WiAbZ532kbeE6vs58navisb7P8eSbCeXw=; b=Kuv6JUZB3If2mT6qDU6YrlTjuGEN4F2K0JTKTIzFiqzf9JUDd6iOfnvpobGX1QpjRm pMK59W1OFaSJKl/1g2orFZ1H1z69qo8OcUqGeRuFCBxdzubtZ0nHaKzuqBv9VhXpr/pg W3f0BUIX1toWqwITYmXl7K32eOwiLhSPZLS8s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=amLadCzywZy8D/RqZRL1+XIYcD5S77asSpPOa1TbdTbB95+voyLZOUeQHMs1j3MC8u st3PY1mq7QIXvs8dpOnE7OX1CTdjZ91rWMHOoH9+AWBaSLwjM3tOhayiDN72ebIOZFm7 XZiLppLG4KcxaYGcTA4ppac7DfCAg+VKpUG3E= Original-Received: by 10.223.93.139 with SMTP id v11mr5897709fam.101.1298916196567; Mon, 28 Feb 2011 10:03:16 -0800 (PST) Original-Received: from thierry-MM061 ([79.88.78.238]) by mx.google.com with ESMTPS id e6sm1703134fav.8.2011.02.28.10.03.14 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Feb 2011 10:03:15 -0800 (PST) In-Reply-To: <20110228.173953.1520547454256399731.hanche@math.ntnu.no> (Harald Hanche-Olsen's message of "Mon, 28 Feb 2011 17:39:53 +0100 (CET)") User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/23.2.94 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:136608 Archived-At: Harald Hanche-Olsen writes: > [Thierry Volpiatto (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