Skip to content

sum: let the last of -r/-s win - #16010

Merged
sylvestre merged 1 commit into
uutils:mainfrom
Logic769:sum-last-of-rs-wins
Oct 31, 2026
Merged

sylvestre merged 1 commit into
uutils:mainfrom
Logic769:sum-last-of-rs-wins

Conversation

@Logic769

@Logic769 Logic769 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

GNU sum uses whichever of -r (BSD) and -s (System V) appears last on
the command line. uutils always picked System V whenever -s was present, so
sum -s -r printed the System V checksum instead of the BSD one.

Declare the two options as overrides of each other so the last one wins, and
add a test covering both orderings.

Closes #15986

@Logic769
Logic769 force-pushed the sum-last-of-rs-wins branch from 2172f6d to f9684e4 Compare October 30, 2026 13:03
@sylvestre
sylvestre merged commit 1a60430 into uutils:main Oct 31, 2026
138 of 139 checks passed
@sylvestre

Copy link
Copy Markdown
Contributor

Thanks for your PR

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.

sum: the last of -r / -s should win

2 participants