From owner-freebsd-current@FreeBSD.ORG Thu Aug 19 06:52:41 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B865C1065697 for ; Thu, 19 Aug 2010 06:52:41 +0000 (UTC) (envelope-from gordon.tetlow@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7C1438FC15 for ; Thu, 19 Aug 2010 06:52:41 +0000 (UTC) Received: by iwn36 with SMTP id 36so1753532iwn.13 for ; Wed, 18 Aug 2010 23:52:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=42ZGD+Y6uix8OvnsOvHoz3OGq7FBN3a2YuiU021J0C4=; b=G4aDffT7cGWGsf652FxNTuL0PhLqamTql0ea1lwwAQx+g49uZWeIJAWhqHs8ndf9sK ZTCzpKcb4d48ScEl+dCvX39Mw0sZ6WamxxHqCRtLUUIincaW7WssjoHXa6YVDKibHMSz +SBXB55ZSlzp9TRG5nJHRYedhy13WcVh0hzX4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=FYHc3mbR6WeJst5NADiPKv7VB0Sng18XgMqA9aMhycp3o2P1rS7zEjKvInDvRjRfNX bDrFu+l56dlnPMGpTZstAP5bFBPVfUEOhHtF65hVMcAw6BWNVP5xC1je55Ctwxa86Gpl t0DOS8nicjNvM4t2o8C3u8Pzx7/ji6+YN2EVw= MIME-Version: 1.0 Received: by 10.231.32.69 with SMTP id b5mr10417665ibd.153.1282200760720; Wed, 18 Aug 2010 23:52:40 -0700 (PDT) Sender: gordon.tetlow@gmail.com Received: by 10.231.172.147 with HTTP; Wed, 18 Aug 2010 23:52:40 -0700 (PDT) In-Reply-To: <86sk2b79oi.fsf@gmail.com> References: <86sk2b79oi.fsf@gmail.com> Date: Wed, 18 Aug 2010 23:52:40 -0700 X-Google-Sender-Auth: tHKoT6F9zT0PAQFKpx2NyosCI4Q Message-ID: From: Gordon Tetlow To: Anonymous Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org Subject: Re: CFR: Replace man/manpath/whatis/apropos with a shell script X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2010 06:52:41 -0000 On Wed, Aug 18, 2010 at 5:01 PM, Anonymous wrote: > Gordon Tetlow 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