Repository navigation
split: accept leading '+' in the number of chunks - #16019
Conversation
589fc05 to
7117f76
Compare
7117f76 to
80c864d
Compare
|
Pulled the |
80c864d to
d806318
Compare
|
a bunch of jobs are failing |
41f71d6 to
aa4d64b
Compare
|
Failure The job fails while building the Reason This is the known |
|
Failure The The subsequent Reason This is the same Please rerun the |
|
Thanks for your PR |
Problem
split -n +2 filefails with "invalid number of chunks" because the leading+is not stripped before parsing, whereas GNUsplitaccepts it.Change
In
NumberType::from, strip an optional leading+before parsing the chunk count.Tests
Added
test_number_with_plus_prefixintests/by-util/test_split.rs, checking that-n +2splits the file into two chunks.Closes #16006