You are not logged in.

#1 2011-10-23 20:19:04

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

No hostname with zsh (and yes, I read the news)

Hi... for maybe 2 days now, i dont have any hostname in zsh.

I created a file /etc/locale.conf with the contents for LANG and LC_MESSAGES. (en_US.UTF-8) in my case. But still it doesnt work.

As soon as i change shell to bash, its working again
It doesnt even need a logout:

[carnager@freebox ~]$ echo $HOSTNAME
freebox
[carnager@freebox ~]$ zsh
The trouble with heart disease is that the first symptom is often hard to
deal with: death.
		-- Michael Phelps
 
carnager@freebox ~ 
> echo $HOSTNAME
 
carnager@freebox ~ 
> 

And yes: the inetutils package is also installed.

Last edited by Rasi (2011-10-23 20:24:41)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#2 2011-10-23 20:21:25

bl1nk
Member
Registered: 2008-07-29
Posts: 57
Website

Re: No hostname with zsh (and yes, I read the news)

I can reproduce the same problem on MacOS 10.7.2 with zsh 4.3.11.

bl1nk at metaverse in ~ 
$ echo $HOSTNAME


bl1nk at metaverse in ~ 
$ bash
bash-3.2$ echo $HOSTNAME
metaverse.fritz.box

Offline

#3 2011-10-23 20:49:29

jaco
Member
From: Toulouse, France
Registered: 2011-03-17
Posts: 149

Re: No hostname with zsh (and yes, I read the news)

Rasi wrote:

Hi... for maybe 2 days now, i dont have any hostname in zsh.

What gives the hostname command ?

[Iggy ~]% echo $HOSTNAME

[Iggy ~]% hostname
Iggy
[Iggy ~]% echo $0
zsh

Offline

#4 2011-10-23 20:51:41

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: No hostname with zsh (and yes, I read the news)

bash exports the HOSTNAME variable as a feature of the shell. ZSH does not. There's nothing wrong here.

Offline

#5 2011-10-23 21:33:36

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: No hostname with zsh (and yes, I read the news)

ok... then i will have to open another thread, because i thought this is related to another issue, where ssh uses up all my memory in seconds. and this only happens when i use zsh as my shell...


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

Board footer

Powered by FluxBB