GNU uses whichever of `-r` (BSD) and `-s` (System V) comes last. uutils always picks System V when `-s` is present. ``` $ printf 'b\na\n' > a.txt $ sum -s -r a.txt ``` GNU: `32826 1 a.txt` (BSD, `-r` was last) uutils: `107 1 a.txt` (System V) Reported in #15254 (found by a differential fuzzer; reproduced against GNU coreutils 9.12).
Activity
tests: sum: ensure the last of -r and -s wins
tests: sum: ensure the last of -r and -s wins
tests: sum: ensure the last of -r and -s wins