Skip to content

timeout: Should not accept "character" input (e.g. '0) #7678

@drinkcat

Description

@drinkcat

This might end up getting handled by #7675, but just to make sure we don't forget.

uutils timeout accepts '1 or "1 as parameters, interpreting them as ASCII values (49 seconds):

cargo build -p uu_timeout && time ./target/debug/timeout \'1 cat
...
real	0m49.055s

We should not allow that:

$ env timeout \'1 cat
timeout: invalid time interval ‘'1’
Try 'timeout --help' for more information.

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