On Thu, Sep 09, 2010 at 11:48:37PM +0400, Anonymous wrote:
> Gordon Tetlow <gor...@freebsd.org> writes:
> > Gordon Tetlow <gor...@freebsd.org> writes:
> >> Anonymous <swel...@gmail.com> writes:
> >>> It doesn't search in bin/../man nor in bin/.man. For example,
> >>> my PATH contains $LOCALBASE/bin:$HOME/.bin, while /etc/
> >>> manpath.config
> >>> is default one and contains /usr/local/man which does not
> >>> exist here.

> >> Guess I missed that pretty badly in my port. I'll go back and
> >> retool the logic for this but that'll take a bit of time.

> > Added. Latest version at http://people.freebsd.org/~gordon/man.sh

> The order is still bogus compared to gnu man. If I don't like our
> ancient GNU tools and altered PATH in order to prefer ones from ports
> then I certainly don't want to view old manpages, too. The base manpath
> should be appended *after* any PATH substitutions.

That is appropriate, but to avoid breaking the more common setup with
/usr/bin before /usr/local/bin, search_path needs to map the PATH
directories /bin and /usr/bin to the man directory /usr/share/man. GNU
man does the same, but it is written into /etc/manpath.config.

-- 
Jilles Tjoelker
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to