git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Linus Torvalds <torvalds@osdl.org>
Date
Sep 19, 2005, 16:32 UTC
Message-ID
<Pine.LNX.4.58.0509190924280.9106@g5.osdl.org>
In-Reply-To
<7vll1trqiq.fsf@assigned-by-dhcp.cox.net>
On Mon, 19 Sep 2005, Junio C Hamano wrote:
> 
> What do popular MUAs do to come up with the real-name fields?
> Don't they face the same problem, trying to using GECOS?
Since I have my pine installed in git, I could git grep it. It says
    /* full name is all chars up to first ',' (or whole gcos, if no ',') */
    /* replace any & with logname in upper case */
I don't know why the & rule, but there you have it..
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 still worry about names of the type "Torvalds, Linus", but maybe that's just not an issue.

		Linus
Previous: Petr BaudisNext: Junio C Hamano
Message 10 of 20 in “What shall we do with the GECOS field again?”
  1. Petr BaudisSep 19, 2005
  2. Kevin O'RiordanSep 19, 2005
  3. Matthias UrlichsSep 19, 2005
  4. A Large Angry SCMSep 19, 2005
  5. Matthias UrlichsSep 19, 2005
  6. A Large Angry SCMSep 19, 2005
  7. Petr BaudisSep 19, 2005
  8. Junio C HamanoSep 19, 2005
  9. Petr BaudisSep 19, 2005
  10. Linus TorvaldsSep 19, 2005
  11. Junio C HamanoSep 19, 2005
  12. Linus TorvaldsSep 19, 2005
  13. Ryan AndersonSep 20, 2005
  14. Linus TorvaldsSep 20, 2005
  15. Junio C HamanoSep 20, 2005
  16. Nikolai WeibullSep 19, 2005
  17. Nikolai WeibullSep 19, 2005
  18. Junio C HamanoSep 20, 2005
  19. Junio C HamanoSep 20, 2005
  20. Nikolai WeibullSep 20, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.