]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cksum: support more transparent emulation of older utils
authorPádraig Brady <P@draigBrady.com>
Mon, 20 Sep 2021 10:54:08 +0000 (11:54 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 20 Sep 2021 15:21:15 +0000 (16:21 +0100)
commit88b7ff98fe412a32e321d8cc76c896d0fb81c51c
tree083909123381a62d2a010309d4103c3a6f36c165
parentf80c6c267d2915eaa7851e90b44eb0893a25e41d
cksum: support more transparent emulation of older utils

* src/digest.c: Allow using the --untagged option with --check,
so that `cksum -a md5 --untagged` used to emulate md5sum for example,
may be augmented with the --check option.  Also support the --tag
option with cksum, to allow overriding a previous --untagged setting.
* doc/coreutils.texi: Adjust accordingly.
* tests/misc/cksum-a.sh: Likewise.
doc/coreutils.texi
src/digest.c
tests/misc/cksum-a.sh