[BusyBox] builtin echo for ash

Mike Frysinger vapier at gentoo.org
Fri Aug 5 21:45:46 UTC 2005


On Friday 05 August 2005 05:05 pm, Paul Fox wrote:
> i've implemented a builtin echo command in ash.  i didn't have to
> do much -- i moved the guts of the echo applet into libbb, and
> now call bb_echo() from both echo.c and ash.c.  so the code size
> impact of having both the applet and the builtin is minimal.

sounds/looks pretty good

> one other implementation question:  moving the echo code into
> libbb/bb_echo.c now requires that CONFIG_FANCY_ECHO be accessible
> from somewhere other than just the coreutils config menu, since
> you might want to configure the builtin echo without configuring
> the echo applet.  i wasn't sure how to handle this, so i simply
> duplicated the CONFIG_FANCY_ECHO option into the ash config menu.
> this isn't right -- what should i do instead?

i dont think the duplication will be that big of a deal ... but i dont know 
kconfig will handle it :)
-mike



More information about the busybox mailing list