bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: du 5.2.1 ignores arguments


From: Volker Kuhlmann
Subject: Re: du 5.2.1 ignores arguments
Date: Wed, 25 Aug 2004 10:26:40 +1200
User-agent: KMail/1.6.2

Thanks Paul.

> I don't get that behavior when I run the following little
> test script (coreutils 5.2.1, Debian GNU/Linux 3.0r1).
> 
>    echo foo >00FILES.du
>    echo foo >00FILES.hlink
>    echo foo >00FILES.long
>    echo foo >00FILES.short
>    echo foo >00FILES.top
>    mkdir CDs src
>    echo foo >CDs/foo
>    echo foo >src/foo
>    du -sk *
>    du -sk . *

This produces faulty output for me, on both reiser and ext2. I'll
assume for now that it's nothing to do with filesystem or locale.

> Can you investigate further why you're seeing the behavior?

Will do.

> What is the output of "echo du -sk . *"?

> echo du -sk . *
du -sk . 00FILES.du 00FILES.hlink 00FILES.long 00FILES.short 00FILES.top CDs src

I.e. correct.

> of "strace du -sk . *"?

> unsetenv LANG LC_COLLATE
> strace -o /tmp/strace.out du -sk . *
[missing the 2 directories in output]
Du looks into the 2 directories and finds the foo files. Then prints the
top level file sizes, goes back into CDs and src, and does nothing else.

Uhhm, agg. I just compiled the vanilla coreutils and they work fine, so
SuSE has broken their shipped version. The strace then isn't of much
interest here I guess.

Thanks again Paul,

Volker

-- 
Volker Kuhlmann                 is possibly list0570 with the domain in header
http://volker.dnsalias.net/             Please do not CC list postings to me.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]