Project

General

Profile

Actions

Bug #6647

closed

MANSECTS should not require a trailing comma

Added by Joshua M. Clulow over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2016-02-11
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

The man(1) program will read an optional man.cf file, if present, in each of the directories in MANPATH. This file can specify the search order of manual page sections. From man(1):

     The man.cf file has the following format:

           MANSECTS=section,[section...]

     Lines beginning with `#' and blank lines are considered comments, and are
     ignored. Each directory specified in MANPATH can contain a manual page
     configuration file, specifying the default search order for that
     directory.

In practice, the absence of a trailing comma appears to cause man to drop the last section from the list. For example, given:

MANSECTS=1,1m,3c,9s

Pages from 1, 1M and 3C would be searched, but not pages from 9S. If a trailing comma is added, i.e.:

MANSECTS=1,1m,3c,9s,

Suddenly pages from 9S are visible as well. The fix for this bug should not make having a trailing comma an error, as that would break man.cf files that are already working around this behaviour.

Actions

Also available in: Atom PDF