Bug 8976 - Man can't read pager from man.conf file
Summary: Man can't read pager from man.conf file
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.24.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-06 21:02 UTC by Łukasz Szpakowski
Modified: 2016-08-22 19:41 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Patch that fixes this bug. (605 bytes, patch)
2016-06-06 21:02 UTC, Łukasz Szpakowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz Szpakowski 2016-06-06 21:02:44 UTC
Created attachment 6451 [details]
Patch that fixes this bug.

Man incorrectly parses the DEFINE field with the pager key in the man.conf file. 
As I ran busybox without the less applet for /etc/man.conf file with defined
pager as "less -R", and then man used the more program as pager instead the less
program. My system have external less program.

Example line with the DEFINE field in /etc/man.conf file:

DEFINE pager less -R

I attach a proposed patch that fixes this bug.

Man uses correct pager instead the more program after applying this patch.
Comment 1 Denys Vlasenko 2016-08-22 19:41:54 UTC
Fixed in git, thanks!