[BUG] sed: newline replacement and marks

Thomas Geulig geulig at nentec.de
Thu Aug 5 15:20:24 UTC 2010


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.

Thomas



More information about the busybox mailing list