Re: [Toybox] ps and top (and Android)

2016-04-24 Thread Rob Landley
On 04/24/2016 06:37 PM, dmccunney wrote: > On Sun, Apr 24, 2016 at 7:11 PM, Rob Landley wrote: > >> That said, there should be _A_ standard. Somewhere. LSB isn't it. Posix >> is losing it. Maybe when we've finally got android self-hosting somebody >> should document the minimal set of interface

Re: [Toybox] ps and top (and Android)

2016-04-24 Thread Rob Landley
On 04/24/2016 06:55 PM, Andy Chu wrote: >>> if that was the intention, it's useless anyway, given the >>> posix-specified -- for all argument parsing. >> >> About that: >> >> $ echo -- hello >> -- hello >> $ /bin/echo -- hello >> -- hello >> >> _I'm_ doing it, but the gnu tools aren't, and nobody

Re: [Toybox] ps and top (and Android)

2016-04-24 Thread Andy Chu
>> if that was the intention, it's useless anyway, given the >> posix-specified -- for all argument parsing. > > About that: > > $ echo -- hello > -- hello > $ /bin/echo -- hello > -- hello > > _I'm_ doing it, but the gnu tools aren't, and nobody seems to have cared. > > Posix does not seem to be a

Re: [Toybox] ps and top (and Android)

2016-04-24 Thread dmccunney
On Sun, Apr 24, 2016 at 7:11 PM, Rob Landley wrote: > That said, there should be _A_ standard. Somewhere. LSB isn't it. Posix > is losing it. Maybe when we've finally got android self-hosting somebody > should document the minimal set of interfaces necessary to run the > build, or some such... P

Re: [Toybox] ps and top (and Android)

2016-04-24 Thread Rob Landley
On 04/24/2016 10:48 AM, enh wrote: > On Sat, Apr 23, 2016 at 11:53 PM, Isaac Dunham wrote: >> On Sat, Apr 23, 2016 at 09:57:12AM -0700, enh wrote: >> IIRC, I heard that unlink was intended to avoid the need to sanity-check >> and escape file names: >> to delete a file named '-h' or '-f', just ru

Re: [Toybox] [PATCH] Fix more to a non-tty.

2016-04-24 Thread Rob Landley
On 04/23/2016 06:45 PM, dmccunney wrote: > On Sat, Apr 23, 2016 at 6:38 PM, enh wrote: >> yeah, i'm pretty sure 100% of our more(1) users are using because we >> don't have less. > > I'd be inclined to say "Don't bother with more as a short term fix. > Properly implement less, and symlink it to m

Re: [Toybox] ps and top (and Android)

2016-04-24 Thread Rob Landley
On 04/23/2016 11:57 AM, enh wrote: > On Sat, Apr 23, 2016 at 3:06 AM, Rob Landley wrote: >> On 04/21/2016 08:59 PM, enh wrote: >>> On Thu, Apr 21, 2016 at 1:06 AM, Rob Landley wrote: On 04/20/2016 08:47 PM, enh wrote: > re: > https://github.com/landley/toybox/commit/529d5db29a32db56

Re: [Toybox] [PATCH] Fix more to a non-tty.

2016-04-24 Thread Andy Chu
> i had no idea there was a POSIX more(1). or that it's more like > less(1) than any real more(1). (the only obviously annoying thing is > that they say ' ' should behave like '\n', rather than keeping the > page vs line behavior that both more(1) and less(1) have in real > life.) Yeah I'd be incl

Re: [Toybox] [PATCH] Fix more to a non-tty.

2016-04-24 Thread enh
On Sat, Apr 23, 2016 at 8:41 PM, Rob Landley wrote: > On 04/23/2016 04:40 PM, enh wrote: >> On Sat, Apr 23, 2016 at 12:39 PM, Rob Landley wrote: >>> On 04/21/2016 07:42 PM, enh wrote: And add a test. --- toys/pending/more.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

Re: [Toybox] ps and top (and Android)

2016-04-24 Thread enh
On Sat, Apr 23, 2016 at 11:53 PM, Isaac Dunham wrote: > On Sat, Apr 23, 2016 at 09:57:12AM -0700, enh wrote: >> On Sat, Apr 23, 2016 at 3:06 AM, Rob Landley wrote: >> > Non-pending commands _not_ included in the build: >> > >> > $ make list_working | tr ' ' "\n" | \ >> > egrep -v "^($(./toybox