Repository navigation
tr: check a complemented SET1 the way GNU does - #15009
Open
Socialpranker wants to merge 2 commits into
Open
Socialpranker wants to merge 2 commits into
Socialpranker wants to merge 2 commits into
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
|
GNU testsuite comparison: |
Socialpranker
force-pushed
the
tr-complement-check-order
branch
2 times, most recently
from
November 14, 2026 14:14
b1118f7 to
a7807dd
Compare
sylvestre
force-pushed
the
tr-complement-check-order
branch
from
November 16, 2026 19:33
a7807dd to
0f7e4f5
Compare
Socialpranker
force-pushed
the
tr-complement-check-order
branch
from
November 18, 2026 09:48
0f7e4f5 to
b70decb
Compare
|
Binary size comparison: |
tr exits before reading stdin there, so writing it raced with the exit and could fail with a broken pipe.
sylvestre
force-pushed
the
tr-complement-check-order
branch
from
November 19, 2026 08:41
b70decb to
cc1fe7f
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
-c, uutils checks SET2's[:upper:]/[:lower:]against positions in SET1, but a complemented SET1 has no such positions. It also reports the complement rule before the "longer than SET2" rule. Found by diffing against GNU 9.12:The fix skips the alignment check under
-cand runs the complement check after the length check. Tests added intest_tr.rs.