coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug#395430: [PATCH] doc: note the order in which wc counts are print


From: Pádraig Brady
Subject: Re: Bug#395430: [PATCH] doc: note the order in which wc counts are printed
Date: Wed, 13 Jul 2011 10:19:14 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

On 13/07/11 09:07, Vincent Lefevre wrote:
> Hi,
> 
> On 2011-07-13 09:28:55 +0200, Benoît Knecht wrote:
>> Well I prefer not using abreviations in documentation (char ->
>> character, max -> maximum); of course, those are obvious, but I think
>> it's in general better to use plain words. As for line vs. newline, I
>> have no preference, I simply used the term from the first part of the
>> description (for the same reason, I used the singular form, as in
>> "newline count").
> 
> "line" would be incorrect if the last line doesn't end with a newline
> character. One may wonder whether this is really a line, but according
> to wc's -L option, it is:
> 
> $ echo -n abc | wc -l -L
>       0       3
> 
> Since wc outputs 3 for the "the length of the longest line", then
> this means that "abc" (without a newline character) is a line. Thus
> the line count is 1 and the newline count is 0.

OK thanks guys.
I push that verbatim (well I added a '.')

cheers,
Pádraig.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]