diff options
author | Elliott Hughes <enh@google.com> | 2019-04-29 16:32:02 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-05-01 13:07:44 -0500 |
commit | 2497ecaf7d1e4c2a7b72f79e3497c758bde7c93a (patch) | |
tree | aa97cd7f1f813de8c34e79550cf6858a30fb8d87 /toys/pending | |
parent | d97be5e94f46986903970d35b17682adc8554da0 (diff) | |
download | toybox-2497ecaf7d1e4c2a7b72f79e3497c758bde7c93a.tar.gz |
man: support MANPATH.
(This and `git clone` is how I use the latest man7.org pages all the
time instead of my system's man pages.)
Diffstat (limited to 'toys/pending')
-rw-r--r-- | toys/pending/man.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/toys/pending/man.c b/toys/pending/man.c index 0e54e93c..82d3c2c9 100644 --- a/toys/pending/man.c +++ b/toys/pending/man.c @@ -159,6 +159,7 @@ void man_main(void) char **order = (char *[]) {"1", "8", "3", "2", "5", "4", "6", "7", 0}; TT.sufs = (char *[]) {".bz2", ".gz", ".xz", "", 0}; + if (!TT.M) TT.M = getenv("MANPATH"); if (!TT.M) TT.M = "/usr/share/man"; if (FLAG(k)) { |