Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: $HOST on OS X
- X-seq: zsh-users 15094
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: $HOST on OS X
- Date: Sun, 6 Jun 2010 17:34:16 +0200
- In-reply-to: <alpine.LNX.2.01.1006051413110.5029@xxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <A31BDCF6-D2C6-4674-B4D5-86B60347A0B2@xxxxxxxxxxxxxxxxxx> <16277B2D-B9C7-4B56-A74C-AE6266BDA089@xxxxxxxxxxxxxxxxxx> <alpine.LNX.2.01.1006051125040.5029@xxxxxxxxxxx> <alpine.LNX.2.01.1006051142290.5029@xxxxxxxxxxx> <FCD37EB8-E199-4AC2-ACB9-D1A899302558@xxxxxxx> <alpine.LNX.2.01.1006051413110.5029@xxxxxxxxxxx>
On 2010-06-05 14:52:33 -0400, Benjamin R. Haskell wrote:
> Regardless, OS X is far from the only O/S that'll update hostnames when
> you join a network. And especially on a laptop, it often makes sense.
Changing the host may confuse software that expects it not to change,
may break user configuration (for instance, I use the same config
files on various machines, and test the FQDN when a difference is
needed), and so on.
> For instance, after associating with a university's wireless network,
> your host probably has a different name assigned to it. Why would it be
> bad to update it?
There's a host name associated with the IP address, but this doesn't
mean that it should be the same as $HOST. Otherwise what would you do
if you wanted to connect to 2 networks (wireless or not) at the same
time?
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author