[Toybox] Allow --help after other arguments?

2021-06-08 Thread Ryan Prichard via Toybox
$ ls -l --help ls: Unknown option 'help' (see "ls --help") I tend to add `--help` to the end of a command line that I'm constructing, so I was surprised by toybox's requirement that `--help` be first. Maybe toybox should be more accommodating? Maybe it'd matter more with an alias, e.g.: $ alias

[Toybox] [PATCH] md5sum.c: simplify the table setup slightly.

2021-06-08 Thread enh via Toybox
I don't think it was wrong before, but the strchr() in particular left me scratching my head. This formulation is slightly cheaper and seems more obviously correct. (Unrelated but nearby, I don't understand why anyone would ever want to calculate these tables at runtime, so this seems like

[Toybox] [PATCH] netstat.c: fix bounds checks.

2021-06-08 Thread enh via Toybox
--- toys/net/netstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) From 3092e2ca49dcfd1ac445d168221a446d3b102c64 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 8 Jun 2021 10:35:48 -0700 Subject: [PATCH] netstat.c: fix bounds checks. --- toys/net/netstat.c | 4 ++-- 1