[patch] sed replace bb_get_chunk_from_file
Rich Felker
dalias at aerifal.cx
Thu May 18 02:44:01 UTC 2006
On Wed, May 17, 2006 at 04:18:33PM -0400, Rob Landley wrote:
> On Wednesday 17 May 2006 4:07 am, walter harms wrote:
> > hi list,
> > this patch replaces bb_get_chunk_from_file() with getline() that is part
> > of glibc. I did some simple tests and found no problems.
> >
> > btw: i run sed.tests but i am not sure that it realy tested the patched
> > version.
>
> ln -s ../busybox sed
> PATH=.:$PATH ./sed.tests
>
> And the reason I have these in the todo heap is that I've got half a rewrite
> of sed to make it _properly_ handle embedded nul bytes (which requires
> changing the entire codepath to take buffer+length rather than a nul
> terminated buffer.)
BTW how does one do this without a custom version of regex? Is there
some trick for replacing characters to make it work?
Rich
More information about the busybox
mailing list