[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in 'wc -l'
From: |
Andreas Schwab |
Subject: |
Re: bug in 'wc -l' |
Date: |
Fri, 06 Feb 2004 19:24:15 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) |
address@hidden writes:
> On Fri, 6 Feb 2004 13:05:09 +0100 (MET), Alfred M. Szmidt
> <address@hidden> posted to gmane.comp.gnu.core-utils.bugs:
> > I am sending you a patch to solve a 'problem' at the wc program.
> > When used with -l option (to count the number of lines) the last
> > line isn't counted.
> > It counts occurences of '\n' (i.e. newline). So I guess that the
> > behaviour is correct.
>
> If that's your definition of a line, obviously.
It's POSIX's definition of a line.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."