tag 9166 invalid
thanks
On 07/24/2011 03:58 PM, Paul Ingerson wrote:
for example echo "A" | wc -m yield 2 instead of 1. Why is this?
Thanks for the report; however, this is not a bug. In your example,
echo "A" really did output two characters: A and newline. Try:
echo A | od -tx1z
to see those characters, and try:
printf A | wc -m
to see the difference (since printf does not output a trailing newline).
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org