util-linux: getopt: broken --name option for a while now
Fri Dec 7 10:31:00 GMT 2018
On Fri, 7 Dec 2018 02:56:50, Andrey Repin wrote:
> Greetings, All!
> This has been plaguing me for several years, but only now I got to test it
> more thoroughly.
> Shame on me.
> $ /usr/bin/getopt --options '+H' --shell sh --name x -- -d
> getopt: unknown option -- d
> Expected output:
> x: unknown option -- d
> $ /usr/bin/getopt -V
> getopt from util-linux 2.25.2
> Poked around,
> getopt from 2.20.1, 2.27.1, 2.31.1 and (reportedly)2.33 works as expected.
( How to use the --name argument to getopt? )
"This is a bug (or just a non-portability issue) which is already fixed in
util-linux 2.28, by commit 30fbf2f6. Before this fix it worked only on Linux,
OSX and a few BSD flavors but not on WIN32 or GNU-Hurd for example".
The answer by "rudimeier" also decribes a temporary work-around.
> Is there a chance for an update?
> With best regards,
> Andrey Repin
> Friday, December 7, 2018 2:51:20
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin