[BusyBox] PATCH: busybox-0.60.0/sed.c multi-replace problem
Erik Andersen
andersen at lineo.com
Wed Aug 22 00:56:20 MDT 2001
On Tue Aug 21, 2001 at 03:12:26PM +0800, Chang, Shu-Hao wrote:
>
> When I use "GNU sed version 3.02", the following command gets result
> "abc xyz" which is what I expacted.
>
> bash$ echo "foo bar" | sed -e 's/foo/abc/' -e 's/bar/xyz/'
> abc xyz
>
> But when I use "busybox 0.60.0 sed", I got 2 lines of output.
>
> $ echo "foo bar" | ./busybox sed -e 's/foo/abc/' -e 's/bar/xyz/'
> abc bar
> foo xyz
>
> This patch fixes this problem.
Excellent work, thanks. I have merged it by hand with
Matt Kraai's earlier fix for non-existing backreferences
and committed the final result,
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list