9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] du
@ 2002-03-21 13:37 rob pike, esq.
  2002-03-21 13:44 ` Lucio De Re
  2002-03-22 10:21 ` bs
  0 siblings, 2 replies; 5+ messages in thread
From: rob pike, esq. @ 2002-03-21 13:37 UTC (permalink / raw)
  To: 9fans

> Plan 9 du(1) is inconsistent with BSD's: du -s walks down one
> directory in Plan 9 before the summary.  I believe that I can achieve
> that effect, should I want it, by entering du -s *, whereas I can't
> achieve the same effect as NetBSD's du -s / using Plan 9's semantics.
> 
> Do I need a new du of my own or would the community accept a modified
> du(1) with BSD semantics?  Is there a reason for the Plan 9 semantics
> that I am unaware of?

This seems reasonable.  I'm not sure why du works this way; it could
be I was trying to reproduce the behavior of the old `research Unix'
version, or I might have thought it was a good idea at the time, or I
might just have screwed up.  The code goes out of its way to behave
like this.

In any case, it's trivial to change.  Just eliminate the variable
'top' altogether from the function du() in /sys/src/cmd/du.c.  I've
made the change on our system.

-rob



^ permalink raw reply	[flat|nested] 5+ messages in thread
* [9fans] du
@ 2002-03-21  7:48 Lucio De Re
  0 siblings, 0 replies; 5+ messages in thread
From: Lucio De Re @ 2002-03-21  7:48 UTC (permalink / raw)
  To: 9fans mailing list

Plan 9 du(1) is inconsistent with BSD's: du -s walks down one
directory in Plan 9 before the summary.  I believe that I can achieve
that effect, should I want it, by entering du -s *, whereas I can't
achieve the same effect as NetBSD's du -s / using Plan 9's semantics.

Do I need a new du of my own or would the community accept a modified
du(1) with BSD semantics?  Is there a reason for the Plan 9 semantics
that I am unaware of?

++L


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-03-22 10:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-21 13:37 [9fans] du rob pike, esq.
2002-03-21 13:44 ` Lucio De Re
2002-03-21 13:47   ` Lucio De Re
2002-03-22 10:21 ` bs
  -- strict thread matches above, loose matches on Subject: below --
2002-03-21  7:48 Lucio De Re

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).