Subject: Re: bug#7739: bug in md5sum ?

From: Eric Blake <[email-masked]>
Date: Mon, 27 Dec 2010 13:19:56 -0700

On 12/26/2010 06:21 PM, Jon Stanley wrote:
> 
> I think that you're seeing the difference in line termination
> characters in Linux and Windows. If you just want the characters
> themselves echoed to the command in Linux, you need to use 'echo -n'
> otherwise it gets terminated with a newline.

'echo -n' is non-portable.  You are better off conditioning yourself to
think about 'printf' rather than perpetuating the problems associated
with 'echo -n'.

-- 
Eric Blake   [email-masked]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org