Repository navigation
find: pad the day with a space in -printf %t, %a and %c - #917
Conversation
These print the time like ctime(3), where a day below 10 is space-padded (Jan 2); the format used %d and printed Jan 02.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
Merging this PR will not alter performance1 warning
Comparing |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #917 +/- ##
==========================================
+ Coverage 92.59% 92.61% +0.01%
==========================================
Files 37 37
Lines 7766 7786 +20
Branches 394 394
==========================================
+ Hits 7191 7211 +20
Misses 435 435
Partials 140 140 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Thanks for your PR |
-printf %t(and%a,%c) print the time in the ctime format, where a single-digit day is padded with a space. uutils zero-pads it:The format now uses
%einstead of%d.%Tcand the other%T/%A/%Cdirectives already matched GNU.New unit test
test_printf_ctime_pads_day_with_space(fails with%d).cargo testpasses (431), clippy is clean.%t,%aand%con a file dated 2 January give the same output as GNU find.