unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* ubuntu 10.04 (getenv "HOSTNAME") does not work.
@ 2010-08-29 18:09 mafeusek
  2010-08-29 19:25 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mafeusek @ 2010-08-29 18:09 UTC (permalink / raw)
  To: help-gnu-emacs

Hallo Group Members.

(getenv "HOSTNAME") returns nil,
while 

bash$ echo $HOSTNAME

returns host name.

weird!? :)

have You got an idea why??

best regards,
Pawel



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ubuntu 10.04 (getenv "HOSTNAME") does not work.
  2010-08-29 18:09 ubuntu 10.04 (getenv "HOSTNAME") does not work mafeusek
@ 2010-08-29 19:25 ` Eli Zaretskii
  2010-08-29 20:05 ` Peter Dyballa
       [not found] ` <mailman.5.1283112307.30819.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2010-08-29 19:25 UTC (permalink / raw)
  To: help-gnu-emacs

> From: mafeusek@gmail.com
> Date: Sun, 29 Aug 2010 20:09:47 +0200
> 
> Hallo Group Members.
> 
> (getenv "HOSTNAME") returns nil,
> while 
> 
> bash$ echo $HOSTNAME
> 
> returns host name.
> 
> weird!? :)

Does "export -p" show HOSTNAME?  If not, it is not exported by the
shell to other programs, including Emacs.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ubuntu 10.04 (getenv "HOSTNAME") does not work.
  2010-08-29 18:09 ubuntu 10.04 (getenv "HOSTNAME") does not work mafeusek
  2010-08-29 19:25 ` Eli Zaretskii
@ 2010-08-29 20:05 ` Peter Dyballa
       [not found] ` <mailman.5.1283112307.30819.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2010-08-29 20:05 UTC (permalink / raw)
  To: mafeusek; +Cc: help-gnu-emacs


Am 29.08.2010 um 20:09 schrieb mafeusek:

> have You got an idea why??

Yes. I read 'man bash' a few times. It seems to export HOST. Although  
I am not sure whether it exists in every instance of bash (login,  
interactive, non-interactive, etc.).

--
Greetings
                                  <]
   Pete       o        __o         |__    o           recumbo
     ___o    /I       -\<,         |o \  -\),-%       ergo sum!
___/\ /\___./ \___...O/ O____.....`-O-'-()--o_________________




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ubuntu 10.04 (getenv "HOSTNAME") does not work.
       [not found] ` <mailman.5.1283112307.30819.help-gnu-emacs@gnu.org>
@ 2010-08-31 19:10   ` Christian Herenz
  0 siblings, 0 replies; 4+ messages in thread
From: Christian Herenz @ 2010-08-31 19:10 UTC (permalink / raw)
  To: help-gnu-emacs

Peter Dyballa schrieb:
>
> Am 29.08.2010 um 20:09 schrieb mafeusek:
>
>> have You got an idea why??
>
> Yes. I read 'man bash' a few times. It seems to export HOST. Although I
> am not sure whether it exists in every instance of bash (login,
> interactive, non-interactive, etc.).

Isn't ubuntu using dash, not bash?

Greets,
Christian



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-31 19:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-29 18:09 ubuntu 10.04 (getenv "HOSTNAME") does not work mafeusek
2010-08-29 19:25 ` Eli Zaretskii
2010-08-29 20:05 ` Peter Dyballa
     [not found] ` <mailman.5.1283112307.30819.help-gnu-emacs@gnu.org>
2010-08-31 19:10   ` Christian Herenz

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