Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sum: fix output when using BSD sum algo (-r) #4278

Merged
merged 1 commit into from
Jan 18, 2023
Merged

Conversation

cakebaker
Copy link
Contributor

This PR fixes the output when using the BSD sum algorithm: it sets the width of the first two columns to 5 and pads the first column with 0, if necessary.

It makes the tests 1 - 7, a-r-1k, and b-r-2k in https://github.com/coreutils/coreutils/blob/master/tests/misc/sum.pl pass.

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/misc/sum is no longer failing!

@sylvestre
Copy link
Contributor

Kudo
Congrats! The gnu test tests/misc/sum is no longer failing!

@sylvestre sylvestre merged commit 8c137f5 into uutils:main Jan 18, 2023
@cakebaker cakebaker deleted the sum branch January 18, 2023 12:38
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.

2 participants