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

From: Gordon Tetlow <gordon_at_freebsd.org>
Date: Wed, 18 Aug 2010 23:52:40 -0700
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
Received on Thu Aug 19 2010 - 04:52:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:06 UTC