Re: /etc/hosts lines starting with white space are ignored

From: Paul Armstrong (freebsdhackers_at_otoh.org)
Date: 02/03/05

  • Next message: Jeff Aitken: "duplicate packets on a vlan interface"
    Date: Wed, 2 Feb 2005 16:36:13 -0800
    To: Romain Kang <romain@kzsu.stanford.edu>, David Scheidt <dmschei@attglobal.net>, hackers@freebsd.org
    
    

    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

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Jeff Aitken: "duplicate packets on a vlan interface"

    Relevant Pages

    • Re: /etc/hosts lines starting with white space are ignored
      ... > not sure that's really a desirable behavior. ... > the vehavior I expected. ... The format of /etc/hosts has been thus for more than 20 years over ... To unsubscribe, ...
      (freebsd-hackers)
    • Re: programming LPT port
      ... I wish to make some applications that can run on other platforms too. ... are avialable for multiple platforms. ... one module for this purpose? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: How to cross compile Debian -> Windows ???
      ... program, multiple platforms? ... Joost Kraaijeveld ... Molukkenstraat 14 ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)