[Toybox] [PATCH] man: support MANPATH.

Rob Landley rob at landley.net
Fri May 3 13:29:16 PDT 2019


On 4/29/19 7:36 PM, makepost wrote:
> On Mon, Apr 29, 2019 at 04:33:07PM -0700, enh via Toybox wrote:
> +  if (!TT.M) TT.M = getenv("MANPATH");
> 
> Breaks unfortunately, distros e.g. gentoo are prefixing the main path in
> the variable with colon divided binutils and gcc dirs, apparently for
> allowing to install multiple versions and architectures on same system.
> I can rework tryfile and FLAG(k) from yesterday's patch to walk every
> directory from this variable, would that be viable?

Sorry, I still haven't moved off gmail and this got caught in gmail's out of
control spam filter again.

I've got some colon separated path walking code (lib.c find_in_path()), I should
probably try to genericize it somehow to cover this case better. Hmmm...
(Possibly teach _it_ to wordexp()? Or a more generic callback...)

Rob



More information about the Toybox mailing list