[BusyBox] backref problem with sed?

Matt Kraai kraai at alumni.carnegiemellon.edu
Mon Aug 20 16:56:27 UTC 2001


On Sun, Aug 19, 2001 at 01:52:22PM +0200, Bene, Martin wrote:
> Hi, I get the following effect:
> 
> # echo "BOOT_IMAGE=vmlinuz root=/dev/hda5 initrd=init1" | ./sed -e
> 's/.*root=/\1/'
> u/dev/hda5 initrd=init1
> 
> The leading "u" character comes from the "vmlinuz" string, but what is it
> doing in the output? Either I'm doing something stupid or there's a bug;
> standard sed works as expected.

It sounds like BusyBox sed doesn't deal properly with non-
existent backreferences.  In the meantime, you can probably use
s/.*root// instead.

Matt





More information about the busybox mailing list