On Wed, Dec 2, 2009 at 2:47 PM, Ciprian Dorin, Craciun <[email protected]> wrote: > Looking closer at what the mentioned patch introduced: > ~~~~ > - local sum="$(${integ}sum "$file" | cut -d ' ' -f 1)" > + local sum="$(openssl dgst -${integ} "$file" | awk '{print $NF}')" > ~~~~ > I'm proposing not to get back to what it has been (which assumed > that there was a md5sum sha128sum, <something-else>sum), but I'm > proposing that for md5 we should use md5sum, which I'm sure it exists > on any UNIX. Or better even, try to see if openssl exists, if not > falling back to md5sum, at least for md5sums...
As a side note, it doesn't exist on all UNIX-y systems, for example on Mac OS X- there is a /sbin/md5, but not an md5sum command. -Dan
