[uClibc] RE: Why use perl instead of sed to hack binutils, gcc

Daniel dragonheart at tpg.com.au
Sun Oct 5 23:30:15 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> (I'm wondering how one would go about adding it to busybox sed. 
> Presumably, it's making a copy and renaming it anyway.  Otherwise any sed
> command that makes a line larger would have to move everything after that
> before it could proceed, which is a pain.  Maybe it loads the whole thing
> into ram and writes it back out?)

it uses a temp file (sed-4.05/.sed/execute.c:538). Seems to progressively add 
to the temp file (fairly but not 100% sure)


Daniel
- -- 
Proudly a Gentoo User.
GnuPG/PGP signed and encrypted email preferred
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x32A64DC8
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/gKmKTDSbtjKmTcgRAtJsAJ9vRhoX7TNBCWlUOO79zkU5bss0fACg4DhU
Hu7KthBII+EnpCuwKeB91mU=
=iFIs
-----END PGP SIGNATURE-----




More information about the uClibc mailing list