Busybox less sometimes ignores newlines in input?

Denys Vlasenko vda.linux at googlemail.com
Mon Sep 22 19:25:24 UTC 2014


On Sunday 21 September 2014 22:50, Aaro Koskinen wrote:
> 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?

Tried to fix this with another change. Please try current git.


More information about the busybox mailing list