Why does "less" indicate weird lines such as unexpected line feeds or missing contents when browsing a file line per line?

Updated 2010-03-11T03:08:54+00:00


When browsing a file with "less", long lines may not be displayed in their entirety when scrolling forward line per line due to a known bug (bug #509553) introduced in the version of "less" which ships with Red Hat Enterprise Linux 5.4.

Part of the content of the file can be missing and random portions of the lines displayed in place, causing the original text to be unreadable.

For example:

less gpl.txt


Red Hat Enterprise Linux 5.4

Subscriber content preview. For full access to the Red Hat Knowledgebase, please log in.

Not a subscriber? Learn more about the benefits of Red Hat Subscriptions.