Skip Menu |

This queue is for tickets about the Digest-SHA CPAN distribution.

Report information
The Basics
Id: 123897
Status: resolved
Worked: 4 hours (240 min)
Priority: 0/
Queue: Digest-SHA

People
Owner: mshelor [...] cpan.org
Requestors: CAC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 6.01



Subject: feature request: --ignore-missing option
Hi, I am suggesting that the --ignore-missing command line option be added for compatibility with coreutils. This option appeared only about two years ago: cf. http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=9fd0662f. When using with --check to verify files, this option suppresses any error for files that are not present, but continues outputting 'OK' for those that are, or that no files were verified. Thanks!
On Sun Dec 17 03:26:29 2017, CAC wrote: Show quoted text
> I am suggesting that the --ignore-missing command line option be added > for compatibility with coreutils
Good suggestion. I'll add this along with the --strict option in the next version of shasum. Generally I am opposed to larding a script with extraneous features, which only increase the probability that something will go wrong in an unusual use case. The logic of when, where, and what to report under various combinations of option switches is starting to get difficult to explain in simple prose. That's bad. Especially for a simple script whose main point is to calculate digests. But compatibility with coreutils is a priority, so I'll do it. Thanks for bringing it to my attention. Mark
Version 6.01 shasum includes support for both the --ignore-missing and --strict options, bringing it in full accord with the shaXsum command line utilities from the GNU Coreutils. The sha3sum and shasumpp utilities from Digest::SHA3 and Digest::SHA::PurePerl have also been updated to support these two options. Mark