Skip to content

Numfmt: do not panic on print fail#10865

Open
FidelSch wants to merge 6 commits intouutils:mainfrom
FidelSch:numfmt_print_panic
Open

Numfmt: do not panic on print fail#10865
FidelSch wants to merge 6 commits intouutils:mainfrom
FidelSch:numfmt_print_panic

Conversation

@FidelSch
Copy link
Contributor

Fixes #10855

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/pr/bounded-memory is no longer failing!

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/pr/bounded-memory is no longer failing!

@ChrisDryden
Copy link
Collaborator

I think the issue here is bigger than this PR suggests since we have set up the error handling with Result<, String> instead of using UResult, this means that we treat any failure as a formatting failure and return with the exit code 2 instead of exit code 1. I was looking into seeing what it would take to fix this and it appears that it would be a fairly large refactor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

numfmt 1 >/dev/full panics

3 participants