From owner-freebsd-questions@FreeBSD.ORG Mon Feb 1 12:53:59 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 886E0106566B for ; Mon, 1 Feb 2010 12:53:59 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id F16D08FC08 for ; Mon, 1 Feb 2010 12:53:58 +0000 (UTC) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id EFC97EB47BC; Mon, 1 Feb 2010 14:53:57 +0200 (EET) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id E639F160D10; Mon, 1 Feb 2010 14:53:57 +0200 (EET) X-Virus-Scanned: amavisd-new at ceid.upatras.gr Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4VN3OxC+gQdf; Mon, 1 Feb 2010 14:53:57 +0200 (EET) Received: from kobe.laptop (ppp-94-64-196-114.home.otenet.gr [94.64.196.114]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 9AA3A160C61; Mon, 1 Feb 2010 14:53:57 +0200 (EET) Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.4/8.14.4) with ESMTP id o11CruSe013566 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 1 Feb 2010 14:53:57 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.4/8.14.4/Submit) id o11Crukq013561; Mon, 1 Feb 2010 14:53:56 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Leslie Jensen References: <4B66B46B.806@eskk.nu> Date: Mon, 01 Feb 2010 14:53:55 +0200 In-Reply-To: <4B66B46B.806@eskk.nu> (Leslie Jensen's message of "Mon, 01 Feb 2010 12:00:59 +0100") Message-ID: <874om1ce1o.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: freebsd-questions@freebsd.org Subject: Re: A question on syntax in /etc/login.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2010 12:53:59 -0000 --=-=-= <#secure method=pgpmime mode=sign> On Mon, 01 Feb 2010 12:00:59 +0100, Leslie Jensen wrote: > On the page > > http://www.se.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-localization.html > > Syntax is shown as: > > language_name:accounts_title:\ > :charset=MIME_charset:\ > :lang=locale_name:\ > :tc=default: > > If I look in the file on a newly installed 8.0-RELEASE it shows: > > russian|Russian Users Accounts:\ > :charset=KOI8-R:\ > :lang=ru_RU.KOI8-R:\ > :tc=default: > > Is it the colon or pipe sign that is correct? On Mon, 01 Feb 2010 12:16:06 +0000, Matthew Seaman wrote: > Probably the latter. The '|' symbol is used when there are several > alternative names for the same object -- this is not used much in > /etc/login.conf, unlike /etc/termcap. By convention, the last name in > a list of alternates like this is a comment rather than a tag for > actual use. See getcap(3) for details. > > The first entry is syntactically correct -- 'accounts_title' would be > a boolean value (set to true if present, false if absent) -- but the > login.conf man page knows nothing of 'accounts_title' and it's a funny > name for a boolean. So I guess that's likely to be a typo in the > handbook. Yes, this is a typo in the Handbook. I just committed a fix for the typo in revision 1.132 of doc/en_US.ISO8859-1/books/handbook/l10n/chapter.sgml ---------------------------- revision 1.132 date: 2010/02/01 12:52:51; author: keramida; state: Exp; lines: +2 -2 Fix typo in login.conf example. The aliases for login.conf entries are separated by the main name with a pipe '|', and there is no support for an "accounts_type" key in the database. Use a whitespace-separated name in the example, to indicate that it's ok to have spaces in login.conf entry aliases. Noticed by: Leslie Jensen, leslie at eskk.nu, Matthew Seaman, m.seaman at infracaninophile.co.uk ---------------------------- Thanks for bringing this to our attention :) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAktmzuMACgkQ1g+UGjGGA7ZnggCeIK+Gcah1fGkz1MPuovINzfb8 KUsAoL1bG3ydtIRGp0RwX06IzEPjX1dL =a4xX -----END PGP SIGNATURE----- --=-=-=--