Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336358 - sys-apps/less: default install cannot be used as pager for the man command
Summary: sys-apps/less: default install cannot be used as pager for the man command
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 14:58 UTC by gentoo
Modified: 2010-09-07 20:47 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo 2010-09-07 14:58:39 UTC
It would be a nice enhancement to make a default install of less easily be a drop-in replacement for more for paging when viewing man pages. Right now it looks like setting PAGER=less and using a man command results in all the escape sequences and control code being printed as values instead of output to the tty.

Reproducible: Always

Steps to Reproduce:
1. export PAGER=less
2. Try to view a man page - observe escape and control codes output
3. export PAGER=more
4. Try to view a man page - result is as expected.

Actual Results:  
Setting PAGER=less and using a man command results in all the escape sequences and control code being printed as values instead of output to the tty.

Expected Results:  
Same as for when PAGER=more.
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2010-09-07 20:47:52 UTC
less installs /etc/env.d/70less, which should cause LESS="-R -M --shift 5" to be set (assuming you haven't overridden it), which makes less play nice with man. You need to source /etc/profile again (or log out and back in) to get environment updates from env.d to take effect, though. Please try this, and re-open if you're still having problems.