Repository navigation
stat: let the last of --printf and --format win - #16012
Conversation
d4bf48d to
3571c60
Compare
|
Added tests for the reverse order: |
db1aa59 to
6f29227
Compare
|
a bunch of jobs are failing |
Cover the four orderings of --printf, --format and -c with one table-driven test, as suggested in review.
e649c07 to
1d50a00
Compare
|
Failure Tests job 126024590669: The following Reason This is the known |
|
Thanks for your PR |
GNU stat lets the last of --printf and --format win, so
stat --printf=X --format=Y a.txtprintsYfollowed by a newline. uutils instead always preferred --printf and printedXwith no trailing newline.This makes the two options mutually override so the last one on the command line wins, matching GNU.
Adds a regression test.
Closes #15993