Subject: Re: CVS commit: basesrc/usr.bin/du
To: Julio Merino <>
From: Simon Burge <>
List: tech-userlevel
Date: 09/27/2002 17:45:20
On Fri, Sep 27, 2002 at 09:39:49AM +0200, Julio Merino wrote:
> On Friday 27 September 2002 05:33, Niels Provos wrote:
> > Log Message:
> > human-readable output via -h flag.  match output from Linux and other BSDs.
> > Partly by Benedikt Meurer <>.  approved by perry. closes
> > pr 14687 and 18402.
> Nice. Now that it has been allowed for `du', we may consider adding the `-h'
> functionality in other commands, like `ls'... right?

A quick look at GNU fileutils shows:


have -h options.  vdir and dir just seem to be different versions of
ls, and luckily ls(1) isn't using -h yet(!).  Seems worth it...

> I remember somebody wrote a small library that did the conversion from
> "normal" numbers to human-readable ones, so it would be linked against many
> commands to do this same thing. Maybe is it in a pr? I do not remember :p But
> it may be interesting to have it.

humanize_number(3) is in our libc now.

Simon Burge                                   <>
NetBSD Development, Support and Service: