Menu

#254 non getopt option parsing broken

None
closed-fixed
None
5
2020-01-29
2010-03-24
No

on current CVS, when _GNU_SOURCE is not defined, the option parsing function does not work well when specifying multiple options:

$ cscope -ld
Usage: cscope [-bcCdehklLqRTuUvV] [-f file] [-F file] [-i file] [-I dir] [-s dir]
[-p number] [-P path] [-[0-8] pattern] [source files]

the same for cscope -Rb.

Discussion

  • Hans-Bernhard Broeker

    AFAIK, outside the GNU world, options can't be concatenated. That's no bug --- it's required behaviour of Unix utilities. The [-bcCd...] part of the Usage help is really just shorthand for the rather less readable [-b] [-c] [-C] [-d] ...

     
  • Hans-Bernhard Broeker

    • status: open --> closed-invalid
     
  • Hans-Bernhard Broeker

    On second thought, Neil, this looks like your changes to option parsing broke this. It was still working in 15.7a, and setting aside whether it was ever properly documented, I do believe we should keep it.

     
  • Hans-Bernhard Broeker

    • assigned_to: nobody --> nhorman
    • status: closed-invalid --> open-accepted
     
  • Hans-Bernhard Broeker

    • status: open-accepted --> closed-fixed
    • Group: -->
     

Log in to post a comment.