[PATCH] for review Re: Sed substitution bugs
Mike Barcroft
mike at FreeBSD.org
Tue Jun 3 18:30:14 PDT 2003
Tony Finch <dot at dotat.at> writes:
> On Tue, Jun 03, 2003 at 03:42:25PM +0100, Tony Finch wrote:
> > $ echo foo | sed 's/ */,/g'
> > ,f,o,o
> > $ echo foo | sed 's/ */,/3'
> > ,foo
> > $ echo foo | sed 's/ */,/4'
> > ,foo
> > $ echo foo | sed 's/ */,/5'
> > ,foo
> > $
>
> $ echo foo | ./sed 's/ */,/g'
> ,f,o,o,
> $ echo foo | ./sed 's/ */,/3'
> fo,o
> $ echo foo | ./sed 's/ */,/4'
> foo,
> $ echo foo | ./sed 's/ */,/5'
> foo
> $
Could you add a test case to the regression test in
src/tools/regression?
Best regards,
Mike Barcroft
More information about the freebsd-standards
mailing list