Subject: Re: CVS commit: basesrc/usr.bin/du
To: Julio Merino <jmmv@hispabsd.org>
From: Simon Burge <simonb@wasabisystems.com>
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 <bmeurer@fwdn.de>. 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:
man/df.1
man/dir.1
man/du.1
man/ls.1
man/vdir.1
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.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD Development, Support and Service: http://www.wasabisystems.com/