diff options
| author | Pádraig Brady <P@draigBrady.com> | 2021-04-11 16:24:07 +0100 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2021-04-11 19:23:13 +0100 |
| commit | 512fe0490254aaa3cb679237dafe9cc1bb7cd3ea (patch) | |
| tree | 2ecc50fd51f5a0808a410276d3b12ab4a92f835d /src | |
| parent | maint: use "char const *" rather than "const char *" (diff) | |
| download | coreutils-512fe0490254aaa3cb679237dafe9cc1bb7cd3ea.tar.gz coreutils-512fe0490254aaa3cb679237dafe9cc1bb7cd3ea.zip | |
doc: clarify what's counted by wc
* src/wc.c (usage): State that only printable characters are considered
when counting words. This also disambiguates wether we're talking
about bytes or characters in this context.
* doc/coreutils.texi (wc invocation): Likewise. Also clarify
that --characters counts valid locale aware characters,
and that --lines does not count a trailing "line" unless
it ends with a newline character.
Fixes https://bugs.gnu.org/47702
Diffstat (limited to 'src')
| -rw-r--r-- | src/wc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -123,7 +123,7 @@ Usage: %s [OPTION]... [FILE]...\n\ fputs (_("\ Print newline, word, and byte counts for each FILE, and a total line if\n\ more than one FILE is specified. A word is a non-zero-length sequence of\n\ -characters delimited by white space.\n\ +printable characters delimited by white space.\n\ "), stdout); emit_stdin_note (); |
