Bug 509553

Summary: [REG] less does not display long lines properly when scrolling line per line
Product: Red Hat Enterprise Linux 5 Reporter: Olivier Fourdan <ofourdan>
Component: lessAssignee: Nikola Pajkovsky <npajkovs>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: high Docs Contact:
Priority: high    
Version: 5.3CC: adamb, ben.argyle, dhoward, dkovalsk, kem, peregrine, ralph, rlerch, robh, rvokal, stephan.wiesand, tao, thughes, tis
Target Milestone: rcKeywords: Patch, Rebase, Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Rebase: Bug Fixes and Enhancements
Doc Text:
Story Points: ---
Clone Of:
: 510724 (view as bug list) Environment:
Last Closed: 2010-03-30 08:17:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 499522, 510724, 541103    
Description Flags
Proposed patch (backport from upstream) none

Description Olivier Fourdan 2009-07-03 13:31:05 UTC
Created attachment 350434 [details]
Proposed patch (backport from upstream)

Description of problem:

The fix for bug #441691 introduced a regression less, it does not display lines longer that screen width properly, when scrolling line per line.

Version-Release number of selected component (if applicable):


How reproducible:

100% reproducible

Steps to Reproduce:
1. Open a 80x25 terminal
2. less /var/log/messages
3. press "enter" or "cursor down" to scroll line per line
Actual results:

The lines are truncated, and the same lines are repeated 

Expected results:

The lines display correctly

Additional info:

The patch "less-394-newline.patch" from bug #441691 that went in 
less-394-6.el5 seems incomplete.

Attached patch backports the missing bits from upstream (for the option --old-bot that was partially introduced in less-394-6.el5).

Comment 5 Olivier Fourdan 2009-07-07 16:43:28 UTC
Sorry, I just find out that the proposed patch is not complete either.

When browsing a man page with the arrow cursor down key, the following message appears at times:


This did not happen before. So the patch is either incomplete or not totalyl appropriate.

Comment 6 Olivier Fourdan 2009-07-09 15:19:32 UTC
(In reply to comment #5)
> When browsing a man page with the arrow cursor down key, the following message
> appears at times:
> This did not happen before. So the patch is either incomplete or not totalyl
> appropriate.  

That particular problem is also present in less-418 but seems to be fixed in less-429

Comment 14 Ben 2010-01-22 12:13:11 UTC
Can someone tell me when a fix for this bug will be released, please?  Every RHEL5.4 (fully patched) box I have, when scrolling through long files with long lines, garbles the display of a file.  Paging through using the space bar works fine.  Pressing ctrl-l after the output becomes garbles also works but I was really hoping that line-by-line scrolling would also work.

Is there an ETA on this bug being resolved?

With thanks.

Comment 15 Olivier Fourdan 2010-01-22 12:33:44 UTC
Ben, you may want to try the "--old-bot" option as a workaround as described in this KBase article: http://kbase.redhat.com/faq/docs/DOC-17739

Comment 16 Ben 2010-01-22 12:41:01 UTC
Awesome!  That fixes my immediate problem.

Is there an actual long term solution or am I going to have to change every user's .*profile on every single RHEL5 workstation and server to alias less to "less --old-bot"?

Thanks for the pointer.

Comment 17 manuel wolfshant 2010-01-22 12:48:11 UTC
Ben, you do know that you could change /etc/bashrc, right ?

Comment 18 Nikola Pajkovsky 2010-01-22 12:54:40 UTC
we have a plan to rebase less in RHEL5.

Comment 19 Ben 2010-01-22 13:59:19 UTC
manuel: Sorry, I was having a Solaris moment and forgot entirely about /etc/bashrc.  Having to do every machine is admittedly slightly less annoying than doing every user on every machine.

Nikola: That's great.  Thank you.  I'll assume 5.5 or 5.6.  Either way, enough time from now to make changing /etc/bashrc worthwhile.

Apologies all round, generally.

Comment 22 errata-xmlrpc 2010-03-30 08:17:45 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Comment 24 Adam T. Bowen 2010-03-30 10:26:40 UTC
Is there a time delay for this errata to be published? It has been two hours now and I'm still getting a 404.

(Sorry about adding this as a comment, but I'm presuming "errata-xmlrpc" isn't a human, so an email to it about this problem would be futile.)