[Toybox] [landley/toybox] Rikk on github asked for the examples back. (ac89784)

Rob Landley rob at landley.net
Sat Dec 8 17:24:56 PST 2018


On 12/8/18 6:20 PM, Elliott Hughes wrote:
> And this is strictly less useful... Now it doesn't tell you whether it's K or Ki.

The units above (for -k) are 1024 and 512. It was always producing
binary output. (Again, the name "human readable" means nothing.
It's "abbreviated". I can add the word "binary" if you'd like?)

I don't feel strongly about this (except or despising the words
"kibibytes" and similar).  Please let me know what to do when
you and Rikk reach a consensus. :)

As for "human readable" generic plumbing, the toybox --help text
says:

> The filename "-" means stdin, "--" stops argument parsing,
> and numerical arguments accept a single letter suffix for
> kilo, mega, giga, tera, peta, and exabytes, plus an additional
> "d" to indicate decimal 1000's instead of 1024. Durations take
>        minute, hour, or day suffixes (ala 0.1m = 6s).

Because it's trying to describe generic stuff. Alas, the "human
readable" plumbing takes a bunch of flags because it _isn't_
generic. :P

Rob



More information about the Toybox mailing list