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   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to