(This and `git clone` is how I use the latest man7.org pages all the time instead of my system's man pages.) --- toys/pending/man.c | 1 + 1 file changed, 1 insertion(+)
From 637b73488724e39dffff7f76a4f56d3d15f3356e Mon Sep 17 00:00:00 2001 From: Elliott Hughes <e...@google.com> Date: Mon, 29 Apr 2019 16:32:02 -0700 Subject: [PATCH] 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.) --- toys/pending/man.c | 1 + 1 file changed, 1 insertion(+) diff --git a/toys/pending/man.c b/toys/pending/man.c index 9abf92bc..44420909 100644 --- a/toys/pending/man.c +++ b/toys/pending/man.c @@ -147,6 +147,7 @@ void man_main(void) char *order = "18325467"; int fd; + if (!TT.M) TT.M = getenv("MANPATH"); if (!TT.M) TT.M = "/usr/share/man"; if (!toys.optc || FLAG(k)) error_exit("not yet"); -- 2.21.0.1020.gf2820cf01a-goog
_______________________________________________ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net