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