summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-10-20 14:42:39 +0100
committerPádraig Brady <P@draigBrady.com>2015-10-21 01:40:02 +0100
commit0e997681d4497fe9ba6db035909e413a5af050a9 (patch)
tree3a6e4bbf904902dbb71124567942198e3142147a /doc
parent069961924efb64349914df085d6b0ac76bdaf7ae (diff)
downloadcoreutils-0e997681d4497fe9ba6db035909e413a5af050a9.tar.xz
ls: allow -w0 to mean no limit on line length
* src/ls.c (print_with_separator): Renamed from print_with_commas, and parameterized to accept the separator to print. Also fix an edge case where '\n' not printed when the POS variable overflows SIZE_MAX. (print_current_files): Degenerate -x and -C to using the cheaper print_with_separator() in the -w0 case. * doc/coreutils.texi (ls invocation): Document the new feature. * tests/ls/w-option.sh: A new test. * tests/local.mk: Reference the new test. * NEWS: Mention the improvement. Fixes http://bugs.gnu.org/21325
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 0359867f5..1b81daa99 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -7445,7 +7445,9 @@ TAB following a non-ASCII byte. You can avoid that issue by using the
Assume the screen is @var{cols} columns wide. The default is taken
from the terminal settings if possible; otherwise the environment
variable @env{COLUMNS} is used if it is set; otherwise the default
-is 80.
+is 80. With a @var{cols} value of @samp{0}, there is no limit on
+the length of the output line, and that single output line will
+be delimited with spaces, not tabs.
@end table