Date: Sun, 27 Jan 2013 05:30:30 +0400 From: Solar Designer <solar@...nwall.com> To: john-dev@...ts.openwall.com Subject: Re: getopt limitation - or bug? On Sat, Jan 26, 2013 at 12:23:43PM +0100, magnum wrote: > We've had to work around a limitation in John's getopt a couple of times and it just hit me this might actually be a bug that could/should be fixed in core: > > For example, you can have two options --format and --fork and they can be abbreviated down to --form and --fork. This is fine. > > But if you have --markov and --markov-stats (the complete former being a subset of the latter), the shorter option will "disappear". --markov will not work at all, but --markov-stats will. > > I think getopt should support this, or at least detect the problem and warn or bail. I don't mind this being corrected. This just did not matter in core yet. Alexander
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.