Per Cederqvist <cederp@xxxxxxxxx> writes: > On 03/14/2012 03:27 PM, Andreas Schwab wrote: > >> Per Cederqvist<cederp@xxxxxxxxx> writes: >> >>> - openssl dgst -sha1 "$1" | sed "s,SHA1.\(.*\).= \(.*\),\2 \1," >>> + if [ $# = 1 ] >>> + then >>> + openssl dgst -sha1 "$1" | sed "s,SHA1.\(.*\).= \(.*\),\2 \1," >>> + else >>> + openssl dgst -sha1 | sed 's,$, -,' >> >> $ openssl dgst -sha1</dev/null >> (stdin)= da39a3ee5e6b4b0d3255bfef95601890afd80709 > > Was that on a Darwin? No. $ openssl version OpenSSL 1.0.0e 6 Sep 2011 Andreas. -- Andreas Schwab, schwab@xxxxxxxxxxxxxx GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html