Red Hat Bugzilla – Bug 509553
[REG] less does not display long lines properly when scrolling line per line
Last modified: 2014-02-02 17:13:27 EST
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):
Steps to Reproduce:
1. Open a 80x25 terminal
2. less /var/log/messages
3. press "enter" or "cursor down" to scroll line per line
The lines are truncated, and the same lines are repeated
The lines display correctly
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).
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.
(In reply to comment #5)
> When browsing a man page with the arrow cursor down key, the following message
> appears at times:
> : ESCOB
> This did not happen before. So the patch is either incomplete or not totalyl
That particular problem is also present in less-418 but seems to be fixed in less-429
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?
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
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.
Ben, you do know that you could change /etc/bashrc, right ?
we have a plan to rebase less in RHEL5.
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.
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.
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.)