Re: [Toybox] [PATCH] Add failing test for cp -r dir/. symlink child.

2019-06-13 Thread makepost
On 2019-06-10 13:55, makepost wrote: Remove the existing link before trying to re-create, passing the test. Add -p to the -r test as a regression guard, portage calls cp with both. Did I break anything with 0002-Fix-cp-r-dir-.-symlink-child.patch? I see 0001 accepted but I followed up a day

Re: [Toybox] [PATCH] Add failing test for cp -r dir/. symlink child.

2019-06-10 Thread makepost
Remove the existing link before trying to re-create, passing the test. Add -p to the -r test as a regression guard, portage calls cp with both. >From fa5e8e861171cd89b7fc4e5423c8ce3bafc93d3f Mon Sep 17 00:00:00 2001 From: makepost Date: Mon, 10 Jun 2019 16:29:10 + Subject: [PATCH] Fix cp

[Toybox] [PATCH] Add failing test for cp -r dir/. symlink child.

2019-06-09 Thread makepost
, since cp.test has a todo. It's from 2008 though, so I guess I'll bump with an expanded test case. Libc is musl-1.1.22. >From 5c03a1673a271ad3de92dd3ec4070fa9af11651c Mon Sep 17 00:00:00 2001 From: makepost Date: Mon, 10 Jun 2019 04:53:28 +0300 Subject: [PATCH] Add failing test for cp -r dir/. syml

Re: [Toybox] CPU always maxed in top

2019-06-05 Thread makepost
On Wed, Jun 05, 2019 at 03:34:02AM -0500, Rob Landley wrote: > 400%cpu 22%user 0%nice 9%sys 370%idle 0%iow 0%irq 0%sirq 0%host > The 400% cpu means it's a 4x SMP system, that's the total available CPU. > > 370% idle means 30% of one CPU is used (22% user and 9% sys, mostly chromium >

[Toybox] CPU always maxed in top

2019-06-05 Thread makepost
Upgraded to master fee0838 on two systems with 2 and 4 cores, and the `top` command is showing 200%cpu and 400%cpu all the time, with nobody connected and the system idle. Some commit from last three weeks seems to have regressed, please check. ___

Re: [Toybox] toybox 0.8.1 is out.

2019-06-03 Thread makepost
On Mon, Jun 03, 2019 at 02:43:23PM -0500, Rob Landley wrote: > I just haven't done it yet because I really shouldn't _have_ to (and it works > for file:/// !). I'm wondering if I can stick something into .htconfig and > have > it apply to all files in the directory or something...

Re: [Toybox] Thuman_readable top header.

2019-05-22 Thread makepost
On May 22, 2019, at 3:11 AM, scsijon wrote: > Please don't add commas with sizes, most people take it as bytes/etc and > don't look for a size multiplier at the right hand end if there are commas in > the line. If I follow correctly, the consensus is to have consistently the same

Re: [Toybox] human_readable top header.

2019-05-21 Thread makepost
> whereas toybox is now back to unreasonably small units on the same laptop: > > Mem: 16364136K total, 12297484K used, 4066652K free, 1187844K buffers > Swap: 33300476K total, 498780K used, 32801696K free, 3706260K cached Can commas between thousands fit in the line while keeping the K?

Re: [Toybox] [PATCH] man: support MANPATH.

2019-05-10 Thread makepost
k...) I see the appeal of find_in_path and a wordexp multiplying paths by sections, suffix presence and zips, reducing man by about 30 lines, but in the meantime have only extended the existing code like this. --- >From 739f1fe0e9c68e16a2ede220e42f424b1a8afa43 Mon Sep 17 00:00:00 2001 From: make

Re: [Toybox] pathological case in sed s///g

2019-05-07 Thread makepost
> wouldn't it be better to have more stuff along the lines of clang's > __has_builtin/__has_feature/__has_include? they're already very useful > for getting rid of this kind of stuff, and a __has_function would > cover most of what's missing. Feature claims of clang and musl are giving us a

Re: [Toybox] [PATCH] man: support MANPATH.

2019-04-29 Thread makepost
On Mon, Apr 29, 2019 at 04:33:07PM -0700, enh via Toybox wrote: + if (!TT.M) TT.M = getenv("MANPATH"); Breaks unfortunately, distros e.g. gentoo are prefixing the main path in the variable with colon divided binutils and gcc dirs, apparently for allowing to install multiple versions and

[Toybox] [PATCH] Implement man.

2019-04-19 Thread makepost
index ..57f77c61 --- /dev/null +++ b/toys/pending/man.c @@ -0,0 +1,112 @@ +/* man.c - Read system documentation + * + * Copyright 2019 makepost + * + * See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/man.html + +USE_MAN(NEWTOY(man, "<1>1", TOYFLAG_USR|TOYFLAG

[Toybox] [PATCH] Add rm -v.

2019-03-25 Thread makepost
Gentoo removes verbosely when building packages, for example vim-core: https://github.com/gentoo/gentoo/blob/665eaa8/app-editors/vim-core/vim-core-8.1.0648.ebuild#L120 Implement like toy cp, without prepending an escape sign to quotation marks in filenames. Document in a test this difference