]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cksum: prefer -a sha2 -l ###, to -a sha###
authorPádraig Brady <P@draigBrady.com>
Tue, 2 Sep 2025 14:28:21 +0000 (15:28 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 4 Sep 2025 13:49:07 +0000 (14:49 +0100)
commitaba9800995e28be6ffa130d57dc1531237f9e5f7
tree310362663b19b8ffe261eb06f195482845a94d43
parent403d82a0bf9e350642933ec44cd4e0ef1fdc0c28
cksum: prefer -a sha2 -l ###, to -a sha###

To make the interface more concise and consistent,
while being backwards compatible.

* src/digest.c (main): Continue to support -a "sha###" but
also support -a "sha2" and treat it like "sha3", except in...
(output_file): ... maintain the legacy tags for better compatability.
* doc/coreutils.texi (cksum invocation): Document the -a sha2 option.
* tests/cksum/cksum-base64.pl: Adjust as per modified --help.
* tests/cksum/cksum-c.sh: Add new supported SHA2-### tagged variant.
* NEWS: Mention the new feature.
NEWS
doc/coreutils.texi
src/digest.c
tests/cksum/cksum-a.sh
tests/cksum/cksum-base64.pl
tests/cksum/cksum-c.sh