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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21926 in the body.
You can then email your comments to 21926 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#21926; Package coreutils. (Sun, 15 Nov 2015 08:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michaël Cadilhac <michael <at> cadilhac.name>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sun, 15 Nov 2015 08:43:03 GMT) Full text and rfc822 format available.

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

From: Michaël Cadilhac <michael <at> cadilhac.name>
To: bug-coreutils <at> gnu.org
Subject: du --summarize prunes subdirectories from output.
Date: Sun, 15 Nov 2015 14:11:27 +0530
Hi there;

The --summarize option of du(1) states:
              display only a total for each argument
Thus I'm assuming that whatever the number of arguments, I'll obtain
an equal number of outputs.  However:

$ mkdir -p a/b
$ du -s a a/b
0       a
$

It is either a bug of du or of its man.

Thanks!
M.

Technical details: du (GNU coreutils) 8.24 on
Arch Linux 4.1.12-1-lts #1 SMP Tue Oct 27 17:21:25 CET 2015 x86_64 GNU/Linux




Information forwarded to bug-coreutils <at> gnu.org:
bug#21926; Package coreutils. (Mon, 16 Nov 2015 22:53:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: Michaël Cadilhac <michael <at> cadilhac.name>,
 21926 <at> debbugs.gnu.org
Subject: Re: bug#21926: du --summarize prunes subdirectories from output.
Date: Mon, 16 Nov 2015 22:52:21 +0000
unarchive 17546
forcemerge 17546 21926
stop

On 15/11/15 08:41, Michaël Cadilhac wrote:
> Hi there;
> 
> The --summarize option of du(1) states:
>               display only a total for each argument
> Thus I'm assuming that whatever the number of arguments, I'll obtain
> an equal number of outputs.  However:
> 
> $ 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. For details see:
http://bugs.gnu.org/17546

thanks,
Pádraig




Information forwarded to bug-coreutils <at> gnu.org:
bug#21926; Package coreutils. (Tue, 17 Nov 2015 05:53:01 GMT) Full text and rfc822 format available.

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.




Forcibly Merged 17546 21926. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 24 Oct 2018 21:21:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 22 Nov 2018 12:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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