GNU bug report logs - #32154
[PATCH] getopt-long: Allow digit options.

Previous Next

Package: guile;

Reported by: Jan Nieuwenhuizen <janneke <at> gnu.org>

Date: Sat, 14 Jul 2018 12:24:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Dale Mellor <guile-qf1qmg <at> rdmp.org>
To: 32154 <at> debbugs.gnu.org
Subject: bug#32154: This patch breaks tests and is irrelevant now
Date: Mon, 18 May 2020 11:09:11 +0100
Note that this patch breaks an existing test (since 2001), namely

(option-ref (getopt-long
              (list "prog" "-f4")
              '((foo
                 (value optional)
                 (single-char #\f))
                (bar)))
             'foo #f)

bails out with 

prog: no such option: -4


The only way to deal with this is to give getopt-long more intelligence in determining where command-line arguments are option
values or otherwise; this is the subject of #40719 which also allows numerical short options, but doesn't break the test suite.

My suggestion would be to dismiss (close) this bug report at this time.






This bug report was last modified 4 years and 316 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.