Andreas Schwab <[EMAIL PROTECTED]> writes: > Jim Meyering <[EMAIL PROTECTED]> writes: > >> [EMAIL PROTECTED] (Bob Proulx) wrote: >>> This doesn't seem a particularly satisfying result as it doesn't seem >>> like a reasonable outcome. >> >> Have you looked at the --count-links option? >> >> -l, --count-links count sizes many times if hard linked > > That goes too far. What I would naïvely expect is that "du -s a b" and > "du -s a; du -s b" produces the same output.
I just checked various *BSD manpages, and they explicitly say to count hard links only once per invocation, so it is probably better to stay compatible here. (POSIX is not that clear in this point, but it appears to be a valid interpretation.) Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils