Il 15/01/2014 13:11, Peter Maydell ha scritto: >> > >> > Then we need a test that tries both sha1sum and shasum > Which systems do you expect to have sha1sum but not > shasum ?
Windows (mingw/Cygwin) mainly, but on my Fedora machine only three programs require perl-Digest-SHA (which provides shasum): cpan, shutter and git-send-email. So it's plausible that a system does not have it. > Googling suggests the BSDs call the native program 'sha256' > but probably have perl's shasum anyway. We can add BSD's sha1 (or sha256, but it's simpler to use shasum without arguments) to the test, too. Paolo