On Sat, 7 Jan 2017 17:14:24, Ken Brown wrote: > From http://man7.org/linux/man-pages/man3/opterr.3.html: > By default, getopt() permutes the contents of argv as it scans, so that > eventually all the nonoptions are at the end. Two other modes are also > implemented. If the first character of optstring is '+' or the > environment variable POSIXLY_CORRECT is set, then option processing > stops as soon as a nonoption argument is encountered.
Thanks for this. The Git repo accepted my commit to use POSIX syntax: http://github.com/git/git/commit/7c44b33 I think it makes sense for the Cygwin example to use POSIX syntax as well, or at least make a note of it. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple