[BusyBox] Re: Bug Report:BB 1.00 sed(address "$" matches end of all input files)

Rob Landley rob at landley.net
Fri Nov 5 23:14:24 UTC 2004


On Tuesday 02 November 2004 03:48, Hiroshi Ito wrote:
> Hello, Rob.
>
> I found another bug.
>
> ---BB's sed---
> /tmp # (echo 1; echo 2; echo 3) > a
> /tmp # sed -n -e '$ p' a a
> 3		    <= $ matches end of first file.
> 3

Darn it darn it darn it!

echo -e "1\n2\n3\n" > a
touch empty
sed -n -p "$p" a empty
./busybox sed -n -p "$p" a empty

Grrrrrrr.  Once again, I have to run off somewhere.  I should be able to come 
up with a better patch this weekend...

Rob




More information about the busybox mailing list