Bug 8976

Summary: Man can't read pager from man.conf file
Product: Busybox Reporter: Łukasz Szpakowski <luckboy>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.24.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: Patch that fixes 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!