less problem +1-bit-patch

Dirk Clemens develop at cle-mens.de
Wed Jan 17 12:48:59 PST 2007


Rob Landley wrote:
> On Tuesday 16 January 2007 12:03 pm, Dirk Clemens wrote:
>> I have found a ,less' problem while using
>> bb 1.3.1 under mips:
>>
>> I use a terminal with about 50 lines.
>> # less a_file
>> works fine and uses the whole terminal height.
>>
>> But
>> # less <same_file
>> uses only the top 24 lines (23 text + 1 status line).
> 
> Because stdin isn't connected to a tty, so it can't figure out how big your 
> terminal is.
> 
> It should be looking at _stdout_, not stdin.
> 
> Rob


indeed, this is the error. Thanx
See attachment for the minimal 1-bit-patch ;)

Dirk
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: less-patch
Url: http://busybox.net/lists/busybox/attachments/20070117/383cc8bc/attachment.pot 


More information about the busybox mailing list