find: print a trailing backslash in -printf - #881
Merged
Merged
Conversation
SichenLiang
force-pushed
the
printf-trailing-backslash
branch
from
September 28, 2026 04:59
b1e859a to
ccc43ff
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #881 +/- ##
==========================================
+ Coverage 92.26% 92.27% +0.01%
==========================================
Files 35 35
Lines 7564 7576 +12
Branches 392 393 +1
==========================================
+ Hits 6979 6991 +12
Misses 443 443
Partials 142 142 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Commit ccc43ff has test result changes: bfs testsuite: |
Contributor
|
Thanks for your PR |
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.
A trailing backslash in a printf format was treated as the start of an escape, so reaching the end of the format returned
Unexpected EOF.Print the backslash literally and issue the same warning as GNU findutils. The parser is shared by
-printfand-fprintf, so both now behave the same way. Add a regression test for the trailing-backslash case.Fixes #880