Re: du

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

From: Michael G Schwern
Subject: Re: du
Date: 02:25 on 30 Sep 2005
On Fri, Sep 30, 2005 at 01:25:13AM +0200, Abigail wrote:
> > earle@pulsar:~$ du -h \.*
> > 4.0K    ./Mail
> > 12K     ./.ssh
> > 104K    ./photos/test
> > ...
> > 
> > Whoa, hold on, "Mail" doesn't begin with a dot. Stop that. Okay, try
> > again. Maybe I need to quote the dot, or something.
> 
> Indeed, Mail doesn't start with a dot. But it doesn't list Mail, does it?
> It lists "./Mail", as it's an entry in ".", which does match ".*".

I think that's the hatefulness here.  du is "helpfully" prepending ./ to
everything in the cwd, unlike pretty much every other program in the 
universe [1], making life difficult.


[1] find comes immediately to mind, but find's interface isn't exactly a 
ringing endorsement of anything except more hate.

-- 
Michael G Schwern     schwern@xxxxx.xxx     http://www.pobox.com/~schwern
You know what the chain of command is? It's the chain I go get and beat you 
with 'til you understand who's in ruttin' command here. 
        -- Jayne Cobb, "Firefly"
There's stuff above here

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