Skip to content

tr: Should not allow special classes in set2 #6342

@BenWiederhake

Description

@BenWiederhake
$ echo -en '1234' | tr -t "1234" "[:blank:]"
tr: when translating, the only character classes that may appear in
string2 are 'upper' and 'lower'
[$? = 1]
$ echo -en '1234' | cargo run tr -t "1234" "[:blank:]"
 	34

(Original issue: #6133)

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