Skip to content
  • Philippe Mallet-Ladeira's avatar
    BUG: wrong manpath value · 6c6a0f80
    Philippe Mallet-Ladeira authored and Julien Michel's avatar Julien Michel committed
    The `man` command expect manpages to be in a `man#` directory where `#` refers
    to the section number of the manpaga. But the directory declared in the
    `$MANPATH` environment variable has to be its parent directory. In this
    commit, we check if the directory is of the `man#` form and create it as a
    subdirectory if not.
    
    Note that the parent directory can also contains directory for different
    languages:
    
    /usr/share/man
    ├── ca
    │   ├── man1
    │   ├── man3
    │   ├── man7
    │   └── man8
    ├── fr
    │   ├── man1
    │   ├── man3
    │   ├── man5
    │   ├── man6
    │   ├── man7
    │   └── man8
    ├── fr.ISO8859-1
    │   └── man1
    ├── fr.UTF-8
    │   └── man1
    ├── man0
    ├── man1
    ├── man2
    ├── man3
    ├── man4
    ├── man5
    ├── man6
    ├── man7
    ├── man8
    ├── mann
    └── zh_TW
        ├── man1
        ├── man5
        └── man8
    
    --HG--
    branch : manpages
    6c6a0f80