On 23/03/2023 09:32, Moviuro via GNU coreutils Bug Reports wrote: > Hello, > > This report was first found on r/archlinux: > > % echo "123" > 1 > % echo "1234" > 2 > % echo "abc" > 3 > % sha256sum 1 2 3 > sums.sha256 > % sha1sum 1 2 3 > sums.sha1 > % echo "123" > 2 # break file 2 > > % sha256sum -c sums.sha256 # returns 2: OK (incorrect) > % sha1sum -c sums.sha1 # returns 2: OK > > % tail -n 2 sums.sha256 | sha256sum -c # returns 2: FAILED (correct) > % tail -n 2 sums.sha1 | sha1sum -c # returns 2: FAILED > > See https://redd.it/11zdecf . > > Someone pointed at this commit, though I'm unable to confirm that: > https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=b319685c6e12e66bf357c2384fe69f1c63f66aed > > % sha256sum --version > sha256sum (GNU coreutils) 9.2 The attached should fix this. Sorry for the trouble. Note the exit status is still OK, and so automated scripts would be unaffected, but yes reporting the status incorrectly here to the user is a bad bug. Marking this as done. thanks, Pádraig