From c27dcfcc1709e6211c5d169e24968ec7e817db5e Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 11 Jan 2005 08:51:21 +0000 Subject: 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 MFC after: 1 week --- bin/ls/ls.1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin/ls') diff --git a/bin/ls/ls.1 b/bin/ls/ls.1 index cedc218..ccd27be 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 -- cgit v1.1