GNU bug report logs - #8606
coreutils: du

Previous Next

Package: coreutils;

Reported by: eMail <at> edgar-kalkowski.de

Date: Mon, 2 May 2011 16:07:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

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 8606 in the body.
You can then email your comments to 8606 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 owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#8606; Package coreutils. (Mon, 02 May 2011 16:07:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to eMail <at> edgar-kalkowski.de:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 02 May 2011 16:07:02 GMT) Full text and rfc822 format available.

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

From: Edgar Kalkowski <eMail <at> edgar-kalkowski.de>
To: bug-coreutils <at> gnu.org
Subject: coreutils: du
Date: Mon, 2 May 2011 17:38:21 +0200
[Message part 1 (text/plain, inline)]
Dear coreutils team,

I have coreutils 8.11 installed on my system via Arch Linux packages and have experienced some unexpected behaviour of the "du" utility. When I execute

du -hs . .git

in a folder that contains some files and a subfolder named ".git" the output I get is

194M    .

The output I would expect is

194M    .
97M     .git

If I change the order of the arguments to read

du -hs .git .

I get the output

97M     .git
97M     .

which again is not the desired result and in fact wrong because the reported size for '.' is 97M whereas a simple `du -hs .` reveals the size of '.' as 194M. It would be great if you could fix this bug or tell me what I did wrong here. :)

Keep up your great work!

Greetings from Germany, Edgar Kalkowski
[signature.asc (application/pgp-signature, inline)]

Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#8606; Package coreutils. (Tue, 03 May 2011 02:53:02 GMT) Full text and rfc822 format available.

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

From: Debarshi Ray <rishi.is <at> lostca.se>
To: 8606 <at> debbugs.gnu.org
Subject: Works in 8.5 but broken from 8.10 onwards
Date: Tue, 3 May 2011 01:51:06 +0000
[Message part 1 (text/plain, inline)]
I have got the latest Git master in /tmp and 8.5 from Fedora 14 installed
system-wide.

[rishi <at> freebook coreutils]$ /tmp/bin/du -hs .git .
32M		.git
9.5M		.
[rishi <at> freebook coreutils]$ /tmp/bin/du -hs . .git
41M		.
[rishi <at> freebook coreutils]$ /tmp/bin/du -hs .
41M		.
[rishi <at> freebook coreutils]$ /tmp/bin/du -hs .git
32M		.git
[rishi <at> freebook coreutils]$ du -hs .git .
32M		.git
41M		.
[rishi <at> freebook coreutils]$ du -hs . .git
41M		.
32M		.git
[rishi <at> freebook coreutils]$ du -hs .git
32M		.git
[rishi <at> freebook coreutils]$ du -hs .
41M		.
[rishi <at> freebook coreutils]$ 

I get similar results using 8.10 on Fedora 15.

If this is indeed a bug, then I can try to cook a patch.

Happy hacking,
Debarshi
[Message part 2 (application/pgp-signature, inline)]

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Tue, 03 May 2011 04:25:02 GMT) Full text and rfc822 format available.

Notification sent to eMail <at> edgar-kalkowski.de:
bug acknowledged by developer. (Tue, 03 May 2011 04:25:02 GMT) Full text and rfc822 format available.

Message #13 received at 8606-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Debarshi Ray <rishi.is <at> lostca.se>
Cc: 8606-done <at> debbugs.gnu.org
Subject: Re: bug#8606: Works in 8.5 but broken from 8.10 onwards
Date: Mon, 02 May 2011 21:24:50 -0700
On 05/02/11 18:51, Debarshi Ray wrote:
> If this is indeed a bug, then I can try to cook a patch.

No, it's expected.  In the NEWS file, it's the first bug
fix listed under coreutils 8.6.




Message #14 received at 8606-done <at> debbugs.gnu.org (full text, mbox):

From: "Alan Curry" <pacman-cu <at> kosh.dhis.org>
To: eggert <at> cs.ucla.edu (Paul Eggert)
Cc: Debarshi Ray <rishi.is <at> lostca.se>, 8606-done <at> debbugs.gnu.org
Subject: Re: bug#8606: Works in 8.5 but broken from 8.10 onwards
Date: Tue, 3 May 2011 00:34:43 -0500 (GMT+5)
Paul Eggert writes:
> 
> On 05/02/11 18:51, Debarshi Ray wrote:
> > If this is indeed a bug, then I can try to cook a patch.
> 
> No, it's expected.  In the NEWS file, it's the first bug
> fix listed under coreutils 8.6.

Expected by who? I expect du -s prints exactly one line of output per
argument. The tool is too clever, outsmarting its users.

-- 
Alan Curry




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#8606; Package coreutils. (Tue, 03 May 2011 07:32:02 GMT) Full text and rfc822 format available.

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

From: Debarshi Ray <rishi.is <at> lostca.se>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 8606 <at> debbugs.gnu.org
Subject: Re: bug#8606: Works in 8.5 but broken from 8.10 onwards
Date: Tue, 3 May 2011 07:31:09 +0000
[Message part 1 (text/plain, inline)]
> No, it's expected.  In the NEWS file, it's the first bug
> fix listed under coreutils 8.6.

Yes, that is what I was thinking after going back and forth with Git.
However, I am confused because FreeBSD 8.1's du seems to have the earlier
behaviour.

Happy hacking,
Debarshi
[Message part 2 (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 31 May 2011 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 82 days ago.

Previous Next


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