bug-coreutils
[Top][All Lists]
Advanced

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

Re: doc refinement request: re: definition of "word" in "wc" manpage; BU


From: Eric Blake
Subject: Re: doc refinement request: re: definition of "word" in "wc" manpage; BUG request
Date: Tue, 23 Mar 2010 07:59:37 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b1 Thunderbird/3.0.3

On 03/22/2010 10:01 PM, Linda Walsh wrote:
> I.e. it doesn't include what some might consider to be, "standard",
> (varying, depending on context), characters that could include:
> period, comma, other punctuation or even "NULL".  The only characters
> that separate words in wc are the set (\f \n \r \t \v <SPACE>).

Correct, and this is mandated by POSIX:
http://www.opengroup.org/onlinepubs/9699919799/utilities/wc.html

"The wc utility shall consider a word to be a non-zero-length string of
characters delimited by white space."

> Could a line as simple as "Words in 'wc' are delimited strictly by
> whitespace", or include the characters (\f \n \r \t \v and ' ' (space))?
> 
> I.e. can a bug be opened to ensure that change gets in?

By sending your email, you've already opened the bug report.  Patches
are welcome; would you like to try your hand at submitting a patch for
src/wc.c, in the usage() function, to alter the wording according to
your desires?

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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