Repository navigation
Conversation
sylvestre
force-pushed
the
paste-parallel-read-errors
branch
from
December 1, 2026 13:03
b02e176 to
b22f6f3
Compare
limadog9
force-pushed
the
paste-parallel-read-errors
branch
from
December 1, 2026 17:27
b22f6f3 to
fce2a4f
Compare
sylvestre
reviewed
Dec 1, 2026
| Ok(read) => read, | ||
| Err(err) => { | ||
| // Keep any bytes read before the error as this row's field. | ||
| // The next row can still get data if the error was transient. |
Contributor
There was a problem hiding this comment.
why keep reading after an error? closing the column and showing the error right away would drop the read_error field, no?
the tests only cover a persistent error anyway
| if !needs_terminator { | ||
| break; | ||
| } | ||
| // Finish the partial record and try reading the next one. |
Contributor
There was a problem hiding this comment.
same here, a break would be enough, the needs_terminator check after the loop already finishes the record
| @@ -158,32 +158,24 @@ fn paste( | |||
| delimiter_state.reset_to_first_delimiter(); | |||
| } | |||
| } else { | |||
Contributor
There was a problem hiding this comment.
what about -s? paste -s left dir1 right still stops at dir1
limadog9
force-pushed
the
paste-parallel-read-errors
branch
from
December 1, 2026 20:21
fce2a4f to
b91d64f
Compare
This branch has not been deployed
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.
Preserve partial fields and continue merging readable columns when one input fails. Report each failed operand once and exit with status 1.
Addresses the parallel paste case in #15254 and the GNU compatibility tracker #14705.
GNU 9.12 misc/read-errors.sh now gets both expected paste diagnostics, up from one. The aggregate test still fails on fold. Both GNU paste suites pass. Rust paste tests went from 29 passed and 2 failed to 31 passed.