On Thu, Mar 15, 2012 at 4:42 AM, Per Cederqvist <cederp@xxxxxxxxx> wrote: > 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? Here's the output from my Mac (running Snow Leopard): $ openssl dgst -sha1</dev/null (stdin)= da39a3ee5e6b4b0d3255bfef95601890afd80709 $ openssl version OpenSSL 1.0.0d 8 Feb 2011 -John -- 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