Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179411 - less(1) has strange behavior by default
Summary: less(1) has strange behavior by default
Status: RESOLVED DUPLICATE of bug 117443
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-22 11:41 UTC by Raymond Pasco
Modified: 2007-05-22 16:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for baselayout (gentoo-baselayout-fix-less.patch,336 bytes, patch)
2007-05-22 11:43 UTC, Raymond Pasco
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***