[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: bb sed 'N' broken
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2013-07-21 20:10:34
Message-ID: 201307212210.34276.vda.linux () googlemail ! com
[Download RAW message or body]
On Sunday 21 July 2013 10:19, Timo Teras wrote:
> On Fri, 19 Jul 2013 09:02:23 +0300
> Timo Teras <timo.teras@iki.fi> wrote:
>
> > I "accidentally" noticed that some sed scripts perl configure does
> > take a long time with bb sed, but works fast with gnu sed. So I
> > tracked the issue down.
> >
> > Basically:
> > sed -n -e ': testcont; /\\$/{ =; N; b testcont }'
> >
> > With the input:
> > --cut--
> > this is a regular line
> >
> > and line with \
> > continuations
> >
> > more regular lines
> >
> > --cut--
> >
> > I expect to only get one output, '3' which the line number of the line
> > having the trailing '\' that should match. And this is what I indeed
> > get with GNU sed.
>
> The following fixes it. Seems GNU sed has GNU extension flags to set
> REG_NEWLINE if wanted, but it defaults off.
Applied, thanks.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic