Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 179411

Summary: less(1) has strange behavior by default
Product: Gentoo Linux Reporter: Raymond Pasco <ray>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for baselayout

Description Raymond Pasco 2007-05-22 11:41:40 UTC
Attempting to view the a HTML file or other types of files with less(1) triggers strange behavior by default, in the case of a HTML file, an attempt to render the HTML. Other file types produce other bizarre results, making less(1) unusable as a pager.

This problem can be traced to the default environment setting the LESSOPEN environment variable, which causes less(1) to use lesspipe.sh to preprocess any files it is used to view. A patch for baselayout is attached which fixes this problem.

Reproducible: Always

Steps to Reproduce:
1. Attempt to view a file with a certain extension or file type with less(1).

Actual Results:  
less(1) displays something that is not the file given in its command line arguments.

Expected Results:  
less(1) should display the file given in its command line arguments.
Comment 1 Raymond Pasco 2007-05-22 11:43:03 UTC
Created attachment 119982 [details, diff]
patch for baselayout

This patch fixes the problem with less(1).
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-05-22 16:55:39 UTC

*** This bug has been marked as a duplicate of bug 117443 ***