From: Horst von Brand Date: Tue, 20 Sep 2005 03:12:02 GMT Subject: Re: What shall we do with the GECOS field again? Message-ID: <200509200312.j8K3C2KZ002935@inti.inf.utfsm.cl> In-Reply-To: Junio C Hamano wrote: > Linus Torvalds writes: > > The Perl User::pwent module seems to agree, btw (also about '&'): > > > > "Interpretation of the gecos field varies between systems, but > > traditionally holds 4 comma-separated fields containing the user's > > full name, office location, work phone number, and home phone number. > > > > An & in the gecos field should be replaced by the user's properly > > capitalized login name." > > I vaguelly recall seeing that & somewhere and wondering what > they do with mcdonalds ;-) You can't use it in that case. > > I still worry about names of the type "Torvalds, Linus", but maybe that's > > just not an issue. > > Does not appear to be. So I'd vote for us doing the "cut at > first comma, substitute & with toupper(login[0])+login[1..]". That is exactly the intent. -- Dr. Horst H. von Brand User #22616 counter.li.org Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513