> % /bin/echo 12345|/usr/bin/wc -c
>       6
> 
> (shouldn't that be 5 not 6????)
> 
> (It is consistent...  'echo |wc -c' gives '1'...... 'echo 1 |wc -c' gives
> '2......)
> 
> What am I missing?

You are forgetting about the newline character that echo is writing at
the end of the line.

  /bin/echo 12345| od -c
  0000000   1   2   3   4   5  \n
  0000006

:-)

Bob

_______________________________________________
Bug-textutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-textutils

Reply via email to