Skip to content

timeout: Duration parsing does not support all float formats (e.g. hex) #7475

@drinkcat

Description

@drinkcat

GNU coreutils supports things like hex formatting, and arbitrary case for infinity parsing:

timeout 0x1.1 cat
timeout 0x1.1p-1 cat
timeout -k 0x10.1 1 cat
timeout INF cat
timeout InF cat

Not a huge deal, probably a pretty rare edge case that I doubt anybody cares about, but it seems worth it to use generic float parsing functions in uucore/format after they are fixed.

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