[klibc] DASH in klibc

Herbert Xu herbert at gondor.apana.org.au
Sat Nov 5 23:19:50 PST 2005


On Sat, Nov 05, 2005 at 11:11:40PM -0800, H. Peter Anvin wrote:
> 
> I'm assuming you're more likely to need the shell but not printf than 
> the other way around.  Doing escape codes is pretty trivial, though.

Actually there are a lot of new scripts these days that use printf
to do escape codes precisely because there is no way to use echo to
do them portably (some require -e while some only work without -e).

So I think we should make printf available, especially because the
version from dash is less than 1900 bytes (the current version in
klibc is just shy of 3000 bytes).

BTW, the saving in implementing echo in terms of printf is about
400 bytes.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



More information about the klibc mailing list