[Toybox] [PATCH] Fix segfault in sed -e 'c\'

Andy Chu andychup at gmail.com
Sun Mar 6 10:12:44 PST 2016


I forgot to mention that GNU sed behaves differently on this case.
I'm not sure if this is important.

$ sed --version
sed (GNU sed) 4.2.2
...

$ echo -e 'a\nb\nc\n' | sed -e 'c\'
(no output)


$ echo -e 'a\nb\nc\n' | sed -e 'c\ '  # add space after \
(4 blank lines)

Andy

 1457287964.0


More information about the Toybox mailing list