[PATCH] man: allow multiple paths in MANPATH

Denys Vlasenko vda.linux at googlemail.com
Wed Nov 26 22:27:28 UTC 2014


On Wed, Nov 26, 2014 at 7:39 PM, Marcel Rodrigues <marcelgmr at gmail.com> wrote:
> BusyBox's man is reading both /etc/man.config and $MANPATH to search for
> man-pages, but currently it assumes $MANPATH contains only a single path.
>
> The MANPATH environment variable may hold a colon-separated list of
> directories to be searched by man. The same rationale for PATH
> applies here: packages installed on different prefixes may coexist on the
> same system.

You reimplemented the code which already exists a few lines down,
in config file parser.

Can you refactor the code so that you use a single copy of it for both purposes?


More information about the busybox mailing list