* `whereis` doesn't honor $MANPATH or command line argument -M as expected
@ 2016-09-19 23:35 Reuti
0 siblings, 0 replies; only message in thread
From: Reuti @ 2016-09-19 23:35 UTC (permalink / raw)
To: util-linux
Hi,
The `whereis` command is supposed to look also in $PATH and $MANPATH. While the $PATH lookup works as expected, I observe a glitch how $MANPATH or -M is handled:
The builtin man pages e.g. /usr/share/man will be expanded inside `whereis` as /usr/share/man/* to look into the individual sections man1, man2, ... This seems not to happen neither for the paths given in $MANPATH, nor the command line argument -M. While for the command line argument it might be a matter of discussion whether one prefers that it's necessary to specify /opt/chemsoft/man/man1 instead of just /opt/chemsoft/man, it's mandatory to have a setting of /opt/chemsoft/man in $MANPATH to get access to different sections of the man pages with the usual `man 1 mycommand` resp. `man 3 mycommand` from the individual subdirectories man1 and man3.
I would prefer that `whereis` looks in all the subdircetories of all the paths set in $MANPATH too.
(observed in the actual version util-linux-2.28)
-- Reuti
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-19 23:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-19 23:35 `whereis` doesn't honor $MANPATH or command line argument -M as expected Reuti
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.