CFR: Replace man/manpath/whatis/apropos with a shell script

Gordon Tetlow gordon at freebsd.org
Thu Aug 19 06:52:41 UTC 2010


On Wed, Aug 18, 2010 at 5:01 PM, Anonymous <swell.k at gmail.com> wrote:

> Gordon Tetlow <gordon at tetlows.org> 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.

I guess there is one more bug.
>
>      $ MANPATH=$HOME/.bin/man man mplayer
>      zcat: HOME/.bin/man/man1/mplayer.1: not in gzip format
>      $ MANPATH=$HOME/.bin/man man -ddd mplayer
>      -- Using architecture: amd64:amd64
>      -- Using pager: less
>      -- Using manual sections: 1:1aout:8:2:3:n:4:5:6:7:9:l
>      -- Using locale paths: en_US.UTF-8:en.UTF-8:.
>      -- Searching for mplayer
>      -- Searching section 1
>      --   Searching directory HOME/.bin/man/man1
>      --     Found manpage HOME/.bin/man/man1/mplayer.1
>      --     Skipping catpage: not found or old
>      -- Command: /usr/bin/zcat HOME/.bin/man/man1/mplayer.1 | /usr/bin/tbl
> | /usr/bin/groff -S -Wall -mtty-char -man -Tascii | /usr/bin/col | less
>

Fixed. Switched to using zcat -f  which works on both compressed and
uncompressed files. (Yay for being lazy!)

Thanks for the report!
Gordon


More information about the freebsd-current mailing list