Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sat, 26 Jan 2013 12:23:43 +0100
From: magnum <>
To: "" <>
Subject: getopt limitation - or bug?


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.


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.