On 2016-11-14 18:08:24 -0800, Kevin J. McCarthy wrote:
On Mon, Nov 14, 2016 at 11:59:35PM +0100, Evgeni Golov wrote:
> For md5, we can use a built-in, or even just use perl's Digest::MD5.
built-in like coreutils' md5sum? would prefer that over perl, tbh :)
Yes, I meant md5sum. I'm thinking just to use a wrapper script that
first tries md5sum, and falls back to a perl blurb if it can't be found.
What is the precise purpose of requiring an external md5, other than the
one included in the distribution? For a quick hash function to check
differences crc32 or SHA256 may be more portable.
The versions of Perl shipped with MacOS 10.10 to 10.12 have Digest::MD5;
the Ruby and Python versions don't seem to include an MD5 module. It
doesn't look like Digest::MD5 is a core Perl module so there may be
systems out there with Perl but without Digest::MD5.
MacOS (and possibly other BSD variants) have /sbin/md5 but no md5sum.
This has a slightly different output format.
-- Andras Salamon and...@dns.net