all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
@ 2015-08-17  8:58 Andreas Röhler
  2015-08-17  9:07 ` Zack Piper
  2015-08-17  9:58 ` Andreas Schwab
  0 siblings, 2 replies; 12+ messages in thread
From: Andreas Röhler @ 2015-08-17  8:58 UTC (permalink / raw)
  To: 21281

(getenv "HOSTNAME") returns nil at

GNU Emacs 25.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.23) of
2015-08-10

also affects

GNU Emacs 24.5.3 (i686-pc-linux-gnu, GTK+ Version 2.24.23) of 2015-04-20

;;;;;


echo $HOSTNAME from Bash withing Emacs  is fine





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

* bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
  2015-08-17  8:58 bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails Andreas Röhler
@ 2015-08-17  9:07 ` Zack Piper
  2015-08-17  9:18   ` Andreas Röhler
  2015-08-17  9:58 ` Andreas Schwab
  1 sibling, 1 reply; 12+ messages in thread
From: Zack Piper @ 2015-08-17  9:07 UTC (permalink / raw)
  To: 21281

On Mon, Aug 17, 2015 at 10:58:49AM +0200, Andreas Röhler wrote:
> echo $HOSTNAME from Bash withing Emacs  is fine

Could you show us the output of "which emacs" it could be that emacs
is being run under a wrapper somehow, it's a low possibility but can
still happen.

-- 
Zack Piper <zack@apertron.net> http://apertron.net





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

* bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
  2015-08-17  9:07 ` Zack Piper
@ 2015-08-17  9:18   ` Andreas Röhler
  2015-08-17  9:59     ` Andreas Schwab
  0 siblings, 1 reply; 12+ messages in thread
From: Andreas Röhler @ 2015-08-17  9:18 UTC (permalink / raw)
  To: 21281


Am 17.08.2015 um 11:07 schrieb Zack Piper:
> On Mon, Aug 17, 2015 at 10:58:49AM +0200, Andreas Röhler wrote:
>> echo $HOSTNAME from Bash withing Emacs  is fine
> Could you show us the output of "which emacs" it could be that emacs
> is being run under a wrapper somehow, it's a low possibility but can
> still happen.
>

# which emacs

tells

/usr/bin/emacs

Which is _not_ the emacs reported.

However, error occurs there too.

But another strange thing herewith:

C-u emacs-version says

GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 
on toyol, modified by Debian

where "toyol" if definitely not the HOSTNAME - and never set by me...

Thanks!





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

* bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
  2015-08-17  8:58 bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails Andreas Röhler
  2015-08-17  9:07 ` Zack Piper
@ 2015-08-17  9:58 ` Andreas Schwab
  2015-08-17 10:55   ` Andreas Röhler
  2015-08-17 11:32   ` Andreas Röhler
  1 sibling, 2 replies; 12+ messages in thread
From: Andreas Schwab @ 2015-08-17  9:58 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 21281

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> (getenv "HOSTNAME") returns nil at

Which means that the parent process did not export this variable to
Emacs.  Why do you think this is a bug?

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





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

* bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
  2015-08-17  9:18   ` Andreas Röhler
@ 2015-08-17  9:59     ` Andreas Schwab
  2015-08-17 11:07       ` Andreas Röhler
  0 siblings, 1 reply; 12+ messages in thread
From: Andreas Schwab @ 2015-08-17  9:59 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 21281

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> where "toyol" if definitely not the HOSTNAME

There is no relation between these two names.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





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

* bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
  2015-08-17  9:58 ` Andreas Schwab
@ 2015-08-17 10:55   ` Andreas Röhler
  2015-08-17 11:32   ` Andreas Röhler
  1 sibling, 0 replies; 12+ messages in thread
From: Andreas Röhler @ 2015-08-17 10:55 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 21281


Am 17.08.2015 um 11:58 schrieb Andreas Schwab:
> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>
>> (getenv "HOSTNAME") returns nil at
> Which means that the parent process did not export this variable to
> Emacs.  Why do you think this is a bug?
>
> Andreas.
>

Because $HOSTNAME exists in Bash but not in Emacs started from Bash.





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

* bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
  2015-08-17  9:59     ` Andreas Schwab
@ 2015-08-17 11:07       ` Andreas Röhler
  2015-08-17 11:17         ` Nicolas Richard
  0 siblings, 1 reply; 12+ messages in thread
From: Andreas Röhler @ 2015-08-17 11:07 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 21281


Am 17.08.2015 um 11:59 schrieb Andreas Schwab:
> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>
>> where "toyol" if definitely not the HOSTNAME
> There is no relation between these two names.
>
> Andreas.
>

Which is a bug.

Having a look into defun emacs-version

it reads  emacs-build-system

which is set by function

system-name

which says:

Return the host name of the machine you are running on, as a string.

;;;

So it should not say something strange, unrelated to current machine.


Maybe due to shipping pre-compiled files?





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

* bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
  2015-08-17 11:07       ` Andreas Röhler
@ 2015-08-17 11:17         ` Nicolas Richard
  2015-08-17 11:40           ` Andreas Röhler
  0 siblings, 1 reply; 12+ messages in thread
From: Nicolas Richard @ 2015-08-17 11:17 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Andreas Schwab, 21281

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
> it reads  emacs-build-system

> So it should not say something strange, unrelated to current machine.

The docstring of emacs-build-system :
> Name of the system on which Emacs was built.

If you don't build your own emacs, it shouldn't be surprising that the
value is unrelated to your machine.

-- 
Nicolas





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

* bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
  2015-08-17  9:58 ` Andreas Schwab
  2015-08-17 10:55   ` Andreas Röhler
@ 2015-08-17 11:32   ` Andreas Röhler
  1 sibling, 0 replies; 12+ messages in thread
From: Andreas Röhler @ 2015-08-17 11:32 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 21281


Am 17.08.2015 um 11:58 schrieb Andreas Schwab:
> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>
>> (getenv "HOSTNAME") returns nil at
> Which means that the parent process did not export this variable to
> Emacs.  Why do you think this is a bug?
>
> Andreas.
>

Writing

export HOSTNAME

into .bashrc and restart solved it.

Remains the question why this isn't needed w/ the bunch of other env's






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

* bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
  2015-08-17 11:17         ` Nicolas Richard
@ 2015-08-17 11:40           ` Andreas Röhler
  2015-08-17 12:39             ` Nicolas Richard
  0 siblings, 1 reply; 12+ messages in thread
From: Andreas Röhler @ 2015-08-17 11:40 UTC (permalink / raw)
  To: Nicolas Richard; +Cc: Andreas Schwab, 21281


Am 17.08.2015 um 13:17 schrieb Nicolas Richard:
> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>> it reads  emacs-build-system
>> So it should not say something strange, unrelated to current machine.
> The docstring of emacs-build-system :
>> Name of the system on which Emacs was built.
> If you don't build your own emacs, it shouldn't be surprising that the
> value is unrelated to your machine.
>

Maybe read previous posts before responding?





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

* bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
  2015-08-17 11:40           ` Andreas Röhler
@ 2015-08-17 12:39             ` Nicolas Richard
  2015-08-17 15:37               ` Glenn Morris
  0 siblings, 1 reply; 12+ messages in thread
From: Nicolas Richard @ 2015-08-17 12:39 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Andreas Schwab, 21281

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
> Maybe read previous posts before responding?

I did. You expressed some surprise because `emacs-build-system' is
unrelated to your current machine, and I said it is meant that way.

-- 
Nico





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

* bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
  2015-08-17 12:39             ` Nicolas Richard
@ 2015-08-17 15:37               ` Glenn Morris
  0 siblings, 0 replies; 12+ messages in thread
From: Glenn Morris @ 2015-08-17 15:37 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 21281


You should read about environment variables and shell variables.
This is nothing to do with Emacs.

http://stackoverflow.com/questions/6353065/hostname-set-in-environment-but-not-visible-to-gmake





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

end of thread, other threads:[~2015-08-17 15:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-17  8:58 bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails Andreas Röhler
2015-08-17  9:07 ` Zack Piper
2015-08-17  9:18   ` Andreas Röhler
2015-08-17  9:59     ` Andreas Schwab
2015-08-17 11:07       ` Andreas Röhler
2015-08-17 11:17         ` Nicolas Richard
2015-08-17 11:40           ` Andreas Röhler
2015-08-17 12:39             ` Nicolas Richard
2015-08-17 15:37               ` Glenn Morris
2015-08-17  9:58 ` Andreas Schwab
2015-08-17 10:55   ` Andreas Röhler
2015-08-17 11:32   ` Andreas Röhler

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.