[Wlug] inconsistent results with du and multiple arguments

Brett Russ bruss at alum.wpi.edu
Wed Jun 18 13:08:52 EDT 2008


On Wed, Jun 18, 2008 at 10:35 AM, Chuck Anderson <cra at wpi.edu> wrote:

> On Wed, Jun 18, 2008 at 10:20:08AM -0400, Brett Russ wrote:
> > Thanks Mike, looks like it is related to the -x argument:
> > http://www.mail-archive.com/bug-gnulib@gnu.org/msg04655.html
> ...
> > Chuck,
> > If it were rounding error I should still be able to make direct
> comparisons
> > between the results, as long as they all used the -m argument.
>
> In my tests, with or without -x didn't make a difference:
>
> >du -smxc yum jigdo
> 1       yum
> 48      jigdo
> 48      total
> >du -smc yum jigdo
> 1       yum
> 48      jigdo
> 48      total


Your version of du does not have the bug that I was writing about.  I
believe versions 6.1 - 6.6 were affected.

The issue I had was that the second file/dir argument onwards was not
properly tallied.  So, using your example, jigdo would show a size of 1 if
it were run as:
>du -smxc yum jigdo
but if you changed the command line to:
>du -smxc jigdo yum
Then jigdo would show the correct size of 48.

-BR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.wlug.org/pipermail/wlug/attachments/20080618/123ebf96/attachment.html 


More information about the Wlug mailing list