GNU bug report logs -
#10281
du: hard-links counting with multiple arguments (commit
Previous Next
Reported by: Paul Eggert <eggert <at> cs.ucla.edu>
Date: Mon, 12 Dec 2011 18:02:02 UTC
Severity: wishlist
Tags: wontfix
Merged with 10282,
11526
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #22 received at 10281 <at> debbugs.gnu.org (full text, mbox):
I think everyone is missing a subtle point here. If I run "du -s a
a/b" then there are in fact NOT two hard links to the same file (Linux
doesn't even allow hard linked directories). Rather, there are two
command line arguments pointing to two directories that are not
mutually exclusive. This is a subtle but important difference and I
think POSIX is being misinterpreted/misused here.
Personally, I find the new behavior to be counter intuitive and I have
talked to several confused users about this change. I have also seen
at least one script break.
Also, as Eric noted, the du implementations in Solaris, OSX and AIX
(all of which are POSIX compliant) give the same output for "du -s a
a/b" and "du -s a; du -s a/b"
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.