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

Re: Make "git-ls-files" work in subdirectories

From
YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Date
Aug 21, 2005, 23:50 UTC
Message-ID
<20050822.085019.32290547.yoshfuji@linux-ipv6.org>
In-Reply-To
<Pine.LNX.4.58.0508211613340.3317@g5.osdl.org>
In article <Pine.LNX.4.58.0508211613340.3317@g5.osdl.org> (at Sun, 21 Aug 2005 16:17:52 -0700 (PDT)), Linus Torvalds <torvalds@osdl.org> says:
> getopt() is too limited, and getopt_long() is very glibc-specific and thus
> inherently evil. And the complexity of doing autoconf or similar is worse
> than just doing it by hand.

(I'm not against having our own getopt_long() or alike, but anyway...)

Well, not really "glibc-specific" now.

NetBSD (>=1.5) has thir own implementation of getopt_long() (w/ 4-clause BSD licence, which is not compatible w/ GPL2). OpenBSD (>=3.3), FreeBSD (>=5.0), too. Solaris (>=9?) seems to have one, too.

NetBSD: http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdlib/getopt_long.c
OpenBSD: http://www.openbsd.org/cgi-bin/cvsweb.cgi/src/lib/libc/stdlib/getopt_long.c
FreeBSD: http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/stdlib/getopt_long.c
Solaris: http://iforce.sun.com/protected/solaris10/adoptionkit/general/getopt_long.txt
--yoshfuji
Previous: Chris Wedgwood
Message 5 of 5 in “Make "git-ls-files" work in subdirectories”
  1. Linus TorvaldsAug 21, 2005
  2. Chris WedgwoodAug 21, 2005
  3. Linus TorvaldsAug 21, 2005
  4. Chris WedgwoodAug 21, 2005
  5. YOSHIFUJI Hideaki / 吉藤英明Aug 21, 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.