From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9821 invoked by alias); 6 Jun 2010 15:40:18 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15094 Received: (qmail 2714 invoked from network); 6 Jun 2010 15:40:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Sun, 6 Jun 2010 17:34:16 +0200 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: $HOST on OS X Message-ID: <20100606153416.GI15450@prunille.vinc17.org> Mail-Followup-To: zsh-users@zsh.org References: <16277B2D-B9C7-4B56-A74C-AE6266BDA089@chemistry.ucsc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.20-6084-vl-r35499 (2010-05-18) 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 - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)