So I'm fixing up scripts/single.sh to build everything, or at least so "make change" doesn't have any command.bad" output in defconfig, and two of the commands that just aren't going to work are toysh and help.
Help is obvious: it displays help text for the enabled commands, in a single build it's the only enabled command so at best it could do "help help" which isn't very useful. Even if I fix up the infrastructure to let it build single, I'd have to special case it rather extensively. Since each command has a "command --help" it's not particularly useful. (And in bash it's a shell builtin anyway, it's the equivalent of "man" for shell builtins. In toybox that distinction's a touch blurry at the moment, but then I haven't implemented a "man" command yet looking at external packages because parsing tr is _fiddly_ as I learned helping Eric debug odd bits of Doclifter.) THe reason "sh" doesn't build standalone is all the shell builtins (like "cd" and "exit" and "export" and so on) are dispatched through the multiplexer, so if you disable the command dispatch infrastructure (sort of the _point_ of standalone builds, not having that) then you can't have the shell builtins. Again I could special case my way around this, but the design idea behind single builds and what this command does fight. Most of the rest of it (egrep and unix2dos and such) were just OLDTOY() macros without their own config symbol, so the build couldn't enable them specifically. I've broken most of those out now. I might cut a release this weekend with just what I have. There's a gazillion half-finished things pending in my tree, but Aboriginal Linux is sort of back together again (I think, still testing) and I fixed the funky bugs the mktemp changes introduced (both of which broke the kernel build in different ways, one obvious and one not so obvious), and I might as well take advantage of the pause... (Sorry for the radio silence. Work's giving me less time to work on toybox than I'd like but that's nothing new. I'm just glad they consider any of it work-related. Got a bit spoiled by that, haven't set my alarm for 5am to do some toybox work before $DAYJOB in over a month. :) Rob _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
