Bug 441691
Summary: | less: Copy&pasting of wrapped lines adds carriage returns. | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Tobias Sandhaas <tobias.sandhaas> | ||||
Component: | less | Assignee: | Zdenek Prikryl <zprikryl> | ||||
Status: | CLOSED ERRATA | QA Contact: | |||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 5.1 | CC: | bash, ofourdan, rvokal, syeghiay | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
The "less" command has been updated. Refer to RHBA-2009:0413. less no longer adds the "carriage return" character when wrapping long lines. Consequently, lines longer than the terminal width will be displayed incorrectly when browsing the file line per line. The command line option "--old-bot" forces less to behave as it did previously, with long text lines displayed correctly.
|
Story Points: | --- | ||||
Clone Of: | |||||||
: | 493968 (view as bug list) | Environment: | |||||
Last Closed: | 2009-04-08 07:46:10 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 513501 | ||||||
Attachments: |
|
Description
Tobias Sandhaas
2008-04-09 14:48:04 UTC
Hello, in less-406 a option --old-bot is added. With this options you can enable appending '\n'. So, I created a patch which does same thing. It means that if you run $ less --old-bot <file> then less will append '\n'. If you don't use this option, then less will not append '\n'. This behavior is same like in less-406. Zdenek Created attachment 301976 [details]
A patch which adds --old-bot options
Thanks. This patch is solving the issue. Will this patch incorperated into less.rpm releases for RHEL 3/4/5? I don't know it now, it depends on the product management. 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. http://rhn.redhat.com/errata/RHBA-2009-0413.html Release note added. If any revisions are required, please set the "requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: [Known issues] * The "less" command was updated and does not add the "carriage return" character when wrapping long lines anymore. This causes lines longer than the terminal width to be displayed incorrectly when browsing the file line per line. Using the command line option "--old-bot" with "less" will revert to the previous behavior and the long lines are displayed correctly. Release note updated. If any revisions are required, please set the "requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,3 +1 @@ -[Known issues] +The "less" command has been updated. Refer to RHBA-2009:0413. less no longer adds the "carriage return" character when wrapping long lines. Consequently, lines longer than the terminal width will be displayed incorrectly when browsing the file line per line. The command line option "--old-bot" forces less to behave as it did previously, with long text lines displayed correctly.- -* The "less" command was updated and does not add the "carriage return" character when wrapping long lines anymore. This causes lines longer than the terminal width to be displayed incorrectly when browsing the file line per line. Using the command line option "--old-bot" with "less" will revert to the previous behavior and the long lines are displayed correctly. This fix seems to cause truncated output from less when using the "Scroll forward" feature (F). What we see is only last few characters of lines wider than the width of the terminal. It looks to be a regression that breaks a critical for us. |