MANSECTS should not require a trailing comma
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:
Pages from 1, 1M and 3C would be searched, but not pages from 9S. If a trailing comma is added, i.e.:
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.
Updated by Electric Monk over 5 years ago
- Status changed from In Progress to Closed
- % Done changed from 50 to 100
commit d456640d8a14f0ba35a7ec232f0ce9ebd34541cb Author: Yuri Pankov <firstname.lastname@example.org> Date: 2016-02-12T20:14:34.000Z 6647 MANSECTS should not require a trailing comma Reviewed by: Joshua M. Clulow <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>