]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: clarify the description of du --separate-dirs
authorPádraig Brady <P@draigBrady.com>
Wed, 12 Jun 2013 10:40:25 +0000 (11:40 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 12 Jun 2013 14:12:24 +0000 (15:12 +0100)
* src/du.c (usage): Clarify that --separate-dirs doesn't exclude
all directories.
* doc/coreutils.texi (du invocation): Avoid implying that -S
excludes the size of any non directory entries for a directory.
Also don't mention st_size as it's dependent on --apparent-size.
Reported by C de-Avillez in <https://launchpad.net/bugs/1187044>

doc/coreutils.texi
src/du.c

index d607eaf3d65e9e6498624dd6a002c76be059c225..a325bd058ee80a5c2794de3e9d07dc7a80a5ab1d 100644 (file)
@@ -11436,8 +11436,7 @@ Normally, in the output of @command{du} (when not using @option{--summarize}),
 the size listed next to a directory name, @var{d}, represents the sum
 of sizes of all entries beneath @var{d} as well as the size of @var{d} itself.
 With @option{--separate-dirs}, the size reported for a directory name,
-@var{d}, is merely the @code{stat.st_size}-derived size of the directory
-entry, @var{d}.
+@var{d}, will exclude the size of any subdirectories.
 
 @optSi
 
index a80a17701ad0429d425df0d932afc8f1d9650a1a..1aa5a1675621ea67c6d585a16ebeded3b8ffc7ea 100644 (file)
--- a/src/du.c
+++ b/src/du.c
@@ -315,7 +315,7 @@ Summarize disk usage of each FILE, recursively for directories.\n\
 "), stdout);
       fputs (_("\
   -P, --no-dereference  don't follow any symbolic links (this is the default)\n\
-  -S, --separate-dirs   do not include size of subdirectories\n\
+  -S, --separate-dirs   for directories do not include size of subdirectories\n\
       --si              like -h, but use powers of 1000 not 1024\n\
   -s, --summarize       display only a total for each argument\n\
 "), stdout);