Re: Make "git-ls-files" work in subdirectories
From: YOSHIFUJI Hideaki / 吉藤英明 <hidden>
Date: 2016-06-15 22:42:04
In article [ref] (at Sun, 21 Aug 2005 16:17:52 -0700 (PDT)), Linus Torvalds [off-list ref] 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