From: Jakub Narebski Date: Fri, 02 Nov 2007 07:28:30 GMT Subject: Re: What's cooking in git.git (topics) Message-ID: <200711020828.30969.jnareb@gmail.com> In-Reply-To: <200711020825.23464.jnareb@gmail.com> Jakub Narebski wrote: > Petr Baudis wrote: > > On Fri, Nov 02, 2007 at 01:04:03AM +0100, Jakub Narebski wrote: > > >> Is 'getopts' bash-ism, or is it in POSIX? > > > > http://www.opengroup.org/onlinepubs/009695399/utilities/getopts.html > > > > (Also, most modern distributions have manpage section 1p (3p, ...) with > > the same contents, so you can check for this stuff pretty easily.) > > Thanks. > > I have just realized however that it doesn't help any (option parser > not only for C builtin, but also for shell scripts, Perl scripts and > Python scripts). First, we (the git development community) do not > consider fact that something is in POSIX as indicator that we can use > the construct. Second, getopts delas IIRC only with _short_ options. Just a thought: http://www.systhread.net/texts/200704optparse.php -- Jakub Narebski Poland