[Toybox] [PATCH] new toys groups and whoami

David Seikel onefang at gmail.com
Sun Feb 26 14:14:25 PST 2012


On Sun, 26 Feb 2012 10:24:56 -0600 Rob Landley <rob at landley.net> wrote:

> On 02/24/2012 02:04 AM, Daniel Walter wrote:
> > new toys groups and whoami
> > 
> >  * fixed wrong path for id (should be /usr/bin/id)
> >
> > --
> > comments are welcome.
> 
> Hmmm...
> 
> One of the things I'm doing is script wrappers for really _obvious_
> stuff; see the "wrappers" directory.
> 
> Possibly these are better as wrappers, ala:
> 
> whoami:
>   #!/bin/sh
> 
>   id -un
> 
> I note that I haven't got an _installer_ for the wrappers yet.  And
> they don't hook into the "help" command, or show up in toybox's big
> list of available commands.  Possibly they're not a good idea at all,
> and it should all just be C code.  (That has the adantage that you
> can drop a statically linked toybox binary on a system and get
> everything.)
> 
> I thought I'd throw the issue out there; I'm open to suggestions on
> this one...

All C code gets my vote.

-- 
A big old stinking pile of genius that no one wants
coz there are too many silver coated monkeys in the world.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20120227/3b371068/attachment-0002.sig>


More information about the Toybox mailing list