Busybox less sometimes ignores newlines in input?

Denys Vlasenko vda.linux at googlemail.com
Sun Sep 21 20:10:37 UTC 2014


On Saturday 20 September 2014 13:30, Aaro Koskinen wrote:
> Hi,
> 
> Sometimes when running "git log", busybox less won't display a newline
> between commits. This happens when git is slow and less needs to wait
> for new input to appear.
> 
> A simple reproducer:
> 
> (perl -e 'print "\nfoo\n";'; sleep 1; perl -e 'print "\nbar\n";') | less

This patch seems to help.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.patch
Type: text/x-diff
Size: 930 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20140921/733b69e4/attachment.bin>


More information about the busybox mailing list