[BusyBox] BusyBox SED bugs reproducible at will.
Benjamin Smith
bsmith at 14inverleith.freeserve.co.uk
Mon Mar 18 13:39:03 UTC 2002
On Mon, Mar 18, 2002 at 02:41:02PM -0500, Serge Caron wrote:
> echo "12345" | sed -e "s/[[:space:]]*/,/"
> ,12345 (BUG!!!)
This isn't a bug as GNU sed produces the same output.
> echo "12345" | sed -e "s/[[:space:]]*/,/g"
> (Infinite loop :()
Output from GNU: ,1,2,3,4,5
> 3) BusyBox sed adds a newline at the end of the input stream
>
> echo -n "12345" | sed -e "s/3/c/" >> junk
> echo -n "12345" | sed -e "s/3/c/" >> junk
> cat junk
> 12c45
> 12c45
GNU sed does not add a newline.
--
Benjamin Smith <bsmith at vtrl.co.uk, benjaminsmith86 at yahoo.co.uk>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20020318/d449aa0d/attachment.pgp
More information about the busybox
mailing list