[Toybox] [PATCH] uptime: trivial modernization.
enh
enh at google.com
Wed Sep 22 15:25:35 PDT 2021
On Tue, Sep 21, 2021 at 6:18 PM Rob Landley <rob at landley.net> wrote:
> On 9/21/21 2:56 PM, enh via Toybox wrote:
> > (I was looking at this code because I was looking at the output in a bug
> > report, and wasn't sure what `up 1:09` meant. It's annoying that -p is
> > a lot more readable, but doesn't include load averages, otherwise I'd be
> > tempted to move Android's bugreports over to `uptime -p` so that no-one
> > would ever have to scratch their heads about this again...)
>
> I have just made Denys Vlasenko sad.
>
i didn't understand what you meant here until i looked at taking another
update :-)
> Rob
>
> (Not that I feel THAT bad about it since the move from bash 4.4.2 to 5.0.3
> BROKE
> THREE of my "TEST_HOST=1 make test_sh" regression tests. Grumble grumble
> compatibility with a moving target. We need an actual bash _standard_.)
>
it's not just bash either. a lot of tools change their human-readable text,
or change their spacing or whatever.
the more i think about -p though, the more ironic it seems: it's explicitly
the "pretty" human-readable form ... yet the default form is so weird that
the human-readable form is probably _easier_ to parse with a regex anyway!
speaking of humans: someone just sent me a change to make strerror(3) text
like "Try again" be "Try again (EAGAIN)" [
https://android-review.googlesource.com/c/platform/bionic/+/1833622] and --
once they've fixed the tests i think exist and will be broken by this --
i'm tempted to say "unusual, but a good idea nonetheless"...
> _______________________________________________
> Toybox mailing list
> Toybox at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210922/1fe13a59/attachment.htm>
More information about the Toybox
mailing list