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 #1

Updated by Yuri Pankov over 5 years ago

  • Status changed from New to In Progress
  • Assignee set to Yuri Pankov
  • % Done changed from 0 to 50
  • Difficulty changed from Medium to Bite-size
Actions #2

Updated by Electric Monk over 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

git commit d456640d8a14f0ba35a7ec232f0ce9ebd34541cb

commit  d456640d8a14f0ba35a7ec232f0ce9ebd34541cb
Author: Yuri Pankov <yuri.pankov@nexenta.com>
Date:   2016-02-12T20:14:34.000Z

    6647 MANSECTS should not require a trailing comma
    Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
    Approved by: Dan McDonald <danmcd@omniti.com>

Actions

Also available in: Atom PDF