Skip to content

numfmt: --from-iec-i should accept arguments without suffix #7219

@jfinkels

Description

@jfinkels

Environment: Ubuntu 24.04, uutils main branch (git commit 2430e2a), GNU coreutils v9.6.8-fbfd88-dirty

Steps to reproduce:

numfmt --from=iec-i 1

What happens now: uutils numfmt complains about a missing suffix:

numfmt: missing 'i' suffix in input: '1' (e.g Ki/Mi/Gi)

What I expected to happen: GNU numfmt succeeds, assuming the number is given in bytes:

1

Notes: this is causing a failure in the GNU test file tests/misc/numfmt.pl.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions