Repository navigation
sort: reject -o combined with --debug - #16020
Conversation
2db6fec to
516e53e
Compare
516e53e to
b14a761
Compare
|
Moved the check next to the |
Merging this PR will not alter performance1 warning, 1 note
Comparing Footnotes
|
|
lot of jobs are failing |
b14a761 to
0f1e7b7
Compare
|
a bunch of jobs are failing |
244d379 to
d9dddef
Compare
|
Thanks for your PR |
Problem
sort -o out --debugsucceeds, writesoutand prints its debug notes, whereas GNU sort rejects this combination:Change
Reject the combination of
-o/--outputand--debugbefore any output is written, with exit code 2.Tests
Added
test_debug_incompatible_with_outputintests/by-util/test_sort.rs, which checks the exit code, the error message and that no output file is created.Closes #15998