Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 2010 23:52:40 -0700
From:      Gordon Tetlow <gordon@freebsd.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:  <AANLkTimRLPe25WeG5JSJJeNbHstq7KizJ-eHOKF-Ju-T@mail.gmail.com>
In-Reply-To: <86sk2b79oi.fsf@gmail.com>
References:  <AANLkTi=d1RqZhkJJ94DioZkBq3Pq5vrj0kxBSgdW%2BUUo@mail.gmail.com> <86sk2b79oi.fsf@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 18, 2010 at 5:01 PM, Anonymous <swell.k@gmail.com> wrote:

> Gordon Tetlow <gordon@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimRLPe25WeG5JSJJeNbHstq7KizJ-eHOKF-Ju-T>