GNU bug report logs - #21926
du --summarize prunes subdirectories from output.

Previous Next

Package: coreutils;

Reported by: Michaël Cadilhac <michael <at> cadilhac.name>

Date: Sun, 15 Nov 2015 08:43:02 UTC

Severity: normal

Tags: notabug

Merged with 17546

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 21926 <at> debbugs.gnu.org (full text, mbox):

From: Michaël Cadilhac <michael <at> cadilhac.name>
To: Pádraig Brady <P <at> draigbrady.com>
Cc: 21926 <at> debbugs.gnu.org
Subject: Re: bug#21926: du --summarize prunes subdirectories from output.
Date: Tue, 17 Nov 2015 11:22:29 +0530
On Tue, Nov 17, 2015 at 4:22 AM, Pádraig Brady <P <at> draigbrady.com> wrote:
> On 15/11/15 08:41, Michaël Cadilhac wrote:

>> $ mkdir -p a/b
>> $ du -s a a/b
>> 0       a
>> $
>>
>> It is either a bug of du or of its man.
>
> Yes it's not ideal.

Thanks for the pointer.  Is it conceivable to separate the behaviors
of --summarize and of --max-depth=0?  After all, I'm expecting some
things to be stripped out with --max-depth=0, but certainly not with
--summarize (based on the man). This would require to store the size
of every dev,ino pair, though.

M.




This bug report was last modified 6 years and 262 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.