Module Name: src
Committed By: jschauma
Date: Wed Nov 6 16:43:11 UTC 2024
Modified Files:
src/bin/ls: ls.1
Log Message:
Correct details around when '-s' prints 'total': this is controlled by
whether we are using multi-column output (-C, -x) or single column output
(-1, -m) with the rationale being that multi-column output is intended
for human consumption.
Based on input from kre@
To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/bin/ls/ls.1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/ls/ls.1
diff -u src/bin/ls/ls.1:1.82 src/bin/ls/ls.1:1.83
--- src/bin/ls/ls.1:1.82 Tue Nov 5 04:04:19 2024
+++ src/bin/ls/ls.1 Wed Nov 6 16:43:11 2024
@@ -1,4 +1,4 @@
-.\" $NetBSD: ls.1,v 1.82 2024/11/05 04:04:19 jschauma Exp $
+.\" $NetBSD: ls.1,v 1.83 2024/11/06 16:43:11 jschauma Exp $
.\"
.\" Copyright (c) 1980, 1990, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)ls.1 8.7 (Berkeley) 7/29/94
.\"
-.Dd November 04, 2024
+.Dd November 06, 2024
.Dt LS 1
.Os
.Sh NAME
@@ -225,10 +225,10 @@ of 512 bytes or
.Sx ENVIRONMENT )
where partial units are rounded up to the
next integer value.
-If the output is to a terminal and
-.Fl 1
-is not specified, a total sum for all the file
-sizes is output on a line before the listing.
+In multi-column output
+.Pq Fl C No or Fl x ,
+a total sum of all the file sizes in each directory is output on a line
+before the listing.
.It Fl T
When used with the
.Fl l