aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2005-01-11 08:51:21 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2005-01-11 08:51:21 +0000
commit1c7adc9b77f1061506d5b9c821118731ba1ceb92 (patch)
tree6b9a2b3dd5923ddda63ea7ccdfb77be7e6bbf6c9 /bin
parent739211f0276b1b79c9c0ad40cfba8a9b661b1100 (diff)
downloadsrc-1c7adc9b77f1061506d5b9c821118731ba1ceb92.tar.gz
src-1c7adc9b77f1061506d5b9c821118731ba1ceb92.zip
The total sum of blocks for the -l and -s option is printed always,
regardless whether the output is to a terminal or not. As this is consistent with the SUSPv2 specification (even though we do not otherwise fully implement SUSPv2's ls(1) options), document this as it is now, rather than trying to change the behaviour itself. PR: docs/76072 Submitted by: Sebastian Rey <Sebastian.rey@gmx.net> MFC after: 1 week
Notes
Notes: svn path=/head/; revision=140050
Diffstat (limited to 'bin')
-rw-r--r--bin/ls/ls.18
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/ls/ls.1 b/bin/ls/ls.1
index cedc21852487..ccd27be7482b 100644
--- a/bin/ls/ls.1
+++ b/bin/ls/ls.1
@@ -32,7 +32,7 @@
.\" @(#)ls.1 8.7 (Berkeley) 7/29/94
.\" $FreeBSD$
.\"
-.Dd May 2, 2004
+.Dd January 11, 2005
.Dt LS 1
.Os
.Sh NAME
@@ -196,7 +196,9 @@ will nullify earlier
.Dq ell . )
List in long format.
(See below.)
-If the output is to a terminal, a total sum for all the file
+A total sum (in blocks, see the
+.Fl s
+option for the block size unit) for all the file
sizes is output on a line before the long listing.
.It Fl m
Stream output format; list files across the page, separated by commas.
@@ -224,7 +226,7 @@ lexicographical order or the oldest entries first.
.It Fl s
Display the number of file system blocks actually used by each file, in units
of 512 bytes, where partial units are rounded up to the next integer value.
-If the output is to a terminal, a total sum for all the file
+A total sum for all the file
sizes is output on a line before the listing.
The environment variable
.Ev BLOCKSIZE