Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Sep 2010 00:26:04 -0700
From:      Gordon Tetlow <gordon@tetlows.org>
To:        Anonymous <swell.k@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: CFR: Replace man/manpath/whatis/apropos with a shell script
Message-ID:  <AANLkTimzJV9B_8Ue94JjoUG=48NM8GFaJTtwQex9yvo_@mail.gmail.com>
In-Reply-To: <868w3aem0a.fsf@gmail.com>
References:  <AANLkTi=d1RqZhkJJ94DioZkBq3Pq5vrj0kxBSgdW%2BUUo@mail.gmail.com> <86sk2b79oi.fsf@gmail.com> <AANLkTimRLPe25WeG5JSJJeNbHstq7KizJ-eHOKF-Ju-T@mail.gmail.com> <AANLkTim3OJH_B_ZmEbxSvg6Ehww=D8X1e1tYhMrhROZi@mail.gmail.com> <868w3aem0a.fsf@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 9, 2010 at 12:48 PM, Anonymous <swell.k@gmail.com> wrote:

> 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.
>
>  $ man -aw gperf # man.sh
>  /usr/share/man/en.UTF-8/man1/gperf.1.gz
>  /usr/share/man/man1/gperf.1.gz
>  LOCALBASE/man/man1/gperf.1.gz
>
>  $ man -aw gperf # gnu man
>  LOCALBASE/man/man1/gperf.1.gz
>  /usr/share/man/en.UTF-8/man1/gperf.1.gz
>
>  > $ echo $PATH
>  >
> LOCALBASE/libexec/ccache:HOME/.bin:LOCALBASE/sbin:LOCALBASE/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:HOME/blah/bin
>

Fixed this up to no longer add an unconditional system search path. While
I'm not planning on supporting MANPATH_MAP, I have added special casing for
/bin and /usr/bin as encountered in PATH.


> And it doesn't show anything when there are no arguments, not even
> returning with exit code > 0.
>
>  $ man # man.sh
>
>  $ man # gnu man
>  What manual page do you want?
>  zsh: exit 1     man
>

Added.

Updated drop location at:
http://people.freebsd.org/~gordon/man.shar

Thanks for the feedback,
Gordon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimzJV9B_8Ue94JjoUG=48NM8GFaJTtwQex9yvo_>