8000 tr: properly determine trailing backslash by BenWiederhake · Pull Request #6731 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tr: properly determine trailing backslash #6731

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

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

BenWiederhake
Copy link
Collaborator

Buggy behavior before this PR:

$ true | tr '\\\' 'asdf'
tr: warning: an unescaped backslash at end of string is not portable
$ true | cargo run -q --features tr -- tr '\\\' 'asdf'
$

Fixes #6729.

Related to #6713.

Copy link

GNU testsuite comparison:

GNU test failed: tests/timeout/timeout. tests/timeout/timeout is passing on 'main'. Maybe you have to rebase?

@cakebaker cakebaker merged commit 457f0ad into uutils:main Sep 25, 2024
67 of 68 checks passed
@cakebaker
Copy link
Contributor

Good catch, thanks!

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 this pull request may close these issues.

tr: doesn't warn about unescaped trailing backslash
2 participants
0