Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tr: Should not allow special classes in set2 #6342

Closed
BenWiederhake opened this issue May 4, 2024 · 0 comments · Fixed by #6424
Closed

tr: Should not allow special classes in set2 #6342

BenWiederhake opened this issue May 4, 2024 · 0 comments · Fixed by #6424
Labels

Comments

@BenWiederhake
Copy link
Collaborator

$ 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant