Hello
This is a mingw issue, but effects cygwin -mno-cygwin apps (probably
setup) too so I cross-post to see what antipathy (a new word: as in
"antipathy rules, OK") I raise.
The cygwin implementation of getopt and getopt_long effectively defaults
to POSIXLY_CORRECTness by virtue of: #define IS_POSIXLY_CORRECT
(getenv("POSIXLY_INCORRECT_GETOPT") == NULL)
Now, that environmental variable is bit strange to me, particularly in a
native environment such as mingw that doesn't have a clue about PC, I
propose this patch, for mingw subdir, so that the default implementation
of mingw's getopt matches the documentation in NetBSD man page. In
effect this means that the permute and in_order BSD extensions (the
latter also a default GNUC extension) are enabled for mingw.