Re: du

[prev] [thread] [next] [lurker] [Date index for 2005/09/30]

From: A. Pagaltzis
Subject: Re: du
Date: 03:01 on 30 Sep 2005
* Michael G Schwern <schwern@xxxxx.xxx> [2005-09-30 03:30]:
> du is "helpfully" prepending ./ to everything in the cwd,
> unlike pretty much every other program in the universe [1],
> making life difficult.

du is doing nothing of the sort.

du is seeing the following list of arguments (as an example):

    . .foo .bar .baz

If it recurses into `.foo`, the output will look something like
this:

    .foo/config
    .foo/state
    .foo/log

So obviously, when it recurses into `.`, the output looks like

    ./Mail
    ./.bashrc
    ./.procmailrc

Regards,
-- 
#Aristotle
*AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;
There's stuff above here

Generated at 16:00 on 04 Oct 2005 by mariachi 0.52