Re: [bug-gnulib] Re: getopt and Solaris 10

[email protected] (Karl Berry) Tue, 10 May 2005 15:15:00 -0400
Newsgroups gmane.comp.gnu.core-utils.bugs,gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs
Message-ID <[email protected]>
    GNU getopt tries to do too much when it reorders the commandline and
    therefor needs the "+" as a workaround.

I don't suppose it matters at this point, but I fail to see the
connection here.  You can tell GNU getopt to REQUIRE_ORDER instead of
PERMUTE without using +, either directly or setting POSIXLY_CORRECT in
various ways.  See the __ordering enum in getopt_int.h, for example.
(Seems like you probably already know this, so maybe it's unsuitable
somehow, if so, sorry for the noise.)

Also, I don't agree that it is "doing too much" to have PERMUTE be the
default for GNU.  It is very useful for most programs.  cvs has
exceptional command-line parsing needs.

Happy hacking,
karl