Skip to content

numfmt: --from / --invalid do not accept unambiguous abbreviations #16005

Open

Description

@sylvestre

GNU accepts any unambiguous prefix for enumerated values, as --from=a (auto) and --invalid=a (abort) show.

$ numfmt --from=a 5
$ numfmt --invalid=a 5

GNU prints 5 both times. uutils:

numfmt: invalid argument 'a' for '--from'
error: invalid value 'a' for '--invalid <INVALID>'

Reported in #15254 (found by a differential fuzzer; reproduced against GNU coreutils 9.12).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions