Thread (1 message) 1 message, 1 author, 2016-06-15

Re: What shall we do with the GECOS field again?

From: Horst von Brand <hidden>
Date: 2016-06-15 22:42:06

Junio C Hamano [off-list ref] wrote:
Linus Torvalds [off-list ref] writes:
quoted
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.
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help