GNU bug report logs - #10282
du: hard-links counting with multiple arguments (commit

Previous Next

Package: coreutils;

Reported by: Kamil Dudka <kdudka <at> redhat.com>

Date: Mon, 12 Dec 2011 20:05:02 UTC

Severity: wishlist

Tags: wontfix

Merged with 10281, 11526

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

Bug is archived. No further changes may be made.

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eric Blake <eblake <at> redhat.com>
Cc: Kamil Dudka <kdudka <at> redhat.com>, Jim Meyering <jim <at> meyering.net>,
	10282 <at> debbugs.gnu.org
Subject: Re: bug#10282: change in behavior of du with multiple arguments
	(commit efe53cc)
Date: Tue, 13 Dec 2011 12:09:42 -0800
On 12/13/11 09:16, Eric Blake wrote:
> Or maybe --count-links gains an optional argument, that says how to
> count links:
> 
> --count-links=none -> POSIX behavior (if POSIX requires elision across
> command line arguments
> --count-links=per-directory -> traditional behavior, resetting hash
> between command line arguments
> --count-links == --count-links=all -> count every file on every encounter

Yes, that was the sort of thing that I had in mind.  Though,
like Kamil, I hadn't thought that the per-directory argument was all that
useful, since one can simply invoke "du" multiple times to get that behavior.

Your earlier message suggests another option, which could be
--count-links=zero or something like that: it causes "du" to
output a "0 X" line for every entry that would otherwise be
elided because it's a duplicate.  Or perhaps we could make that
"-0 X" so that one can distinguish duplicates from true zero
entries.

Or perhaps it would be better to have a --count-links=mark option,
which causes du to output "+N X" for a duplicate link, where N is
the size, and the "+" marks it as a duplicate.

Just thinking out loud....  At any rate it doesn't sound like
it's high priority.




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

Previous Next


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