Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Feb 2005 16:36:13 -0800
From:      Paul Armstrong <freebsdhackers@otoh.org>
To:        Romain Kang <romain@kzsu.stanford.edu>, David Scheidt <dmschei@attglobal.net>, hackers@freebsd.org
Subject:   Re: /etc/hosts lines starting with white space are ignored
Message-ID:  <20050203003613.GQ32260@suricate.otoh.org>
In-Reply-To: <20050202012119.GA48725@kzsu.stanford.edu>
References:  <420010BC.9080400@attglobal.net> <20050202012119.GA48725@kzsu.stanford.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 01, 2005 at 05:21:19PM -0800, Romain Kang wrote:
> > If a line in /etc/hosts starts with a space or tab, it's not read. I'm 
> > not sure that's really a desirable behavior.  I'm quite sure it's not 
> > the vehavior I expected.
> 
> The format of /etc/hosts has been thus for more than 20 years over
> multiple platforms, so it's what everyone else expects.  Sorry.

I'm not so sure it is actually.
Both Solaris and Linux (sorry, but these are the only 2 other platforms
I've got access to), accept lines beginning with space or tab (or both).

Paul



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050203003613.GQ32260>