aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2021-04-11 16:24:07 +0100
committerPádraig Brady <P@draigBrady.com>2021-04-11 19:23:13 +0100
commit512fe0490254aaa3cb679237dafe9cc1bb7cd3ea (patch)
tree2ecc50fd51f5a0808a410276d3b12ab4a92f835d /src
parentmaint: use "char const *" rather than "const char *" (diff)
downloadcoreutils-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wc.c b/src/wc.c
index a122bde80..d635e5214 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -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 ();