Skip to content

tr -d should reject a second argument #5944

@sylvestre

Description

@sylvestre
echo "5"|/usr/bin/tr -d "c" "p"
/usr/bin/tr: extra operand 'p'
Only one string may be given when deleting without squeezing repeats.
Try '/usr/bin/tr --help' for more information.
$ echo "5"|../target/debug/coreutils tr -d "c" "p"
5

Found by fuzzing it

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions