Re: What shall we do with the GECOS field again?
- From
Junio C Hamano <junkio@cox.net>
- Date
- Sep 19, 2005, 16:49 UTC
- Message-ID
- <7vd5n5q9xu.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.58.0509190924280.9106@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 8 quoted lines
> 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 ;-)
> 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..]".