Busybox less sometimes ignores newlines in input?

Aaro Koskinen aaro.koskinen at iki.fi
Sun Sep 21 20:50:58 UTC 2014


Hi,

On Sun, Sep 21, 2014 at 10:10:37PM +0200, Denys Vlasenko wrote:
> 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.

Thanks... I think also found another issue with less...

Try "git log | less" on some large git tree (e.g. linux) and press 'G'.
What should happen?

A.


More information about the busybox mailing list