diff options
-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)) { |