summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2015-05-13 02:46:29 +0100
committerPádraig Brady <P@draigBrady.com>2015-05-13 02:54:19 +0100
commit79111d1553ff6603199b9e8e5f27269d55b095fb (patch)
tree539ae7e25bec66577029831fdcd8a85e379dc2a2
parentb28ff6a3c6ad25d877b63013af245de5d6c70b10 (diff)
downloadcoreutils-79111d1553ff6603199b9e8e5f27269d55b095fb.tar.xz
doc: clarify the operation of wc -L
* src/wc.c (usage): State that it calculates display width. * doc/coreutils.texi (wc invocation): Detail the distinct items used to determine the display width.
-rw-r--r--doc/coreutils.texi5
-rw-r--r--src/wc.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 51d96b466..6a69b75ca 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -3593,7 +3593,10 @@ Print only the newline counts.
@itemx --max-line-length
@opindex -L
@opindex --max-line-length
-Print only the maximum line lengths.
+Print only the maximum display widths.
+Tabs are set at every 8th column.
+Display widths of wide characters are considered.
+Non-printable characters are given 0 width.
@macro filesZeroFromOption{cmd,withTotalOption,subListOutput}
@item --files0-from=@var{file}
diff --git a/src/wc.c b/src/wc.c
index ae7ae952d..eb7b5b69a 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -134,7 +134,7 @@ the following order: newline, word, character, byte, maximum line length.\n\
--files0-from=F read input from the files specified by\n\
NUL-terminated names in file F;\n\
If F is - then read names from standard input\n\
- -L, --max-line-length print the length of the longest line\n\
+ -L, --max-line-length print the maximum display width\n\
-w, --words print the word counts\n\
"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);