On Tue, 2023-09-05 at 08:25 +0200, Janneke Nieuwenhuizen wrote: > Marius Bakke writes: > > > * module/ice-9/getopt-long.scm (short-opt-rx): Add 0-9. > > Hehe, reminds me of > > > https://lists.gnu.org/archive/html/bug-guile/2018-07/msg00009.html > >
Also note https://debbugs.gnu.org/db/42/42669.html. You see, your solution fails if '-1' were supposed to be read literally as a positional parameter. The only solution is to make getopt-long more intelligent in how it applies the pattern specification. On the whole, both mine and Marius' patches are now years old and the outstanding bug list is massive; these things are not going to get done without a sea-change in the project administration. Dale