[BusyBox] testsuite; sed-recurses-properly, grep-matches-NUL

Erlend Bergs howl at online.no
Wed Nov 27 12:19:03 UTC 2002


On 27 Nov 2002 14:02:20 -0500
Danny Lepage <danny.lepage at enter-net.com> wrote:

> Ok, I am obviously missing something here.
> 
> Disregard the previous post.
> 
> Danny
> 
> On Wed, 2002-11-27 at 13:31, Danny Lepage wrote:
> > On Wed, 2002-11-27 at 03:33, Glenn McGrath wrote:
> > > It looks like the following, any sed experts have an idea of what the
> > > problem is ?
> > > 
> > > # XFAIL
> > > test "$(echo '12345' | busybox sed -e 's/[[:space:]]*/,/g')" =
> > > ',1,2,3,4,5,'
> > 
> > I'm no sed or shell experts, but this looks strange to me...
> > 
> > Shouldn't this be
> > # XFAIL
> > test "(echo '12345' | busybox sed -e 's/[[:space:]]*/,/g')" =
> > ',1,2,3,4,5,'

In bash that is correct, but I doubt it works in busybox's ash. That is, it should in
bash be test "$(echo '12345' | busybox sed -e 's/[[:space:]]*/,/g')", but in ash it should
be test "`echo '12345' | busybox sed -e 's/[[:space:]]*/,/g'`"

- Erlend



More information about the busybox mailing list