[BUG] sed: newline replacement and marks
Denys Vlasenko
vda.linux at googlemail.com
Mon Aug 16 14:29:12 UTC 2010
On Thu, Aug 5, 2010 at 5:20 PM, Thomas Geulig <geulig at nentec.de> wrote:
> I've tried to join lines with sed.
>
> GNU sed 4.1.5 works ok:
>
> # echo -e "a\nb\nc" | sed ":a;N;s/\n/ /;ta"
> a b c
> # echo -e "a\nb\nc" | sed "N;s/\n/ /"
> a b
> c
>
> Busybox does not:
>
> # echo -e "a\nb\nc" | sed ":a;N;s/\n/ /;ta"
> # echo -e "a\nb\nc" | sed "N;s/\n/ /"
> a b
>
> The behaviour is the same for version 1.5.2, 1.16.2 and 1.17.1.
Please try attached patch.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7.patch
Type: application/octet-stream
Size: 2330 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100816/4a7b675d/attachment.obj>
More information about the busybox
mailing list