[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wc -m reports one too many?
From: |
Tobias Reif |
Subject: |
Re: wc -m reports one too many? |
Date: |
Sat, 8 May 2004 19:55:43 +0200 |
User-agent: |
Mutt/1.4.1i |
On Sat 2004-05-08 Bob Proulx wrote:
> Andreas Schwab wrote:
> > Tobias Reif <address@hidden> writes:
> >
> > > echo f | wc -m
> > >
> > > should yield 1.
> >
> > No, you forgot to count the newline.
> >
> > $ printf f | wc -m
> > 1
>
> For more information use 'od' to dump each character for your
> inspection.
>
> echo f | od -c
> 0000000 f \n
> 0000002
>
> printf f | od -c
> 0000000 f
> 0000001
Sorry for having bothered you, I should've known that there can't be
such a severe bug in such a basic GNU tool :)
Thank you very much,
Tobi
--
Vim users, don't forget to
http://iccf-holland.org/donate.html