From owner-freebsd-current@FreeBSD.ORG Thu Sep 9 20:19:32 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 3D73910656C5; Thu, 9 Sep 2010 20:19:32 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) by mx1.freebsd.org (Postfix) with ESMTP id 011098FC08; Thu, 9 Sep 2010 20:19:32 +0000 (UTC) Received: from turtle.stack.nl (turtle.stack.nl [IPv6:2001:610:1108:5010::132]) by mx1.stack.nl (Postfix) with ESMTP id 577D61DD685; Thu, 9 Sep 2010 22:19:31 +0200 (CEST) Received: by turtle.stack.nl (Postfix, from userid 1677) id 402FC172E5; Thu, 9 Sep 2010 22:19:31 +0200 (CEST) Date: Thu, 9 Sep 2010 22:19:31 +0200 From: Jilles Tjoelker To: Anonymous Message-ID: <20100909201931.GB48144@stack.nl> References: <86sk2b79oi.fsf@gmail.com> <868w3aem0a.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <868w3aem0a.fsf@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Gordon Tetlow , 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, 09 Sep 2010 20:19:32 -0000 On Thu, Sep 09, 2010 at 11:48:37PM +0400, Anonymous wrote: > Gordon Tetlow writes: > > Gordon Tetlow writes: > >> Anonymous 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. > > Added. Latest version at http://people.freebsd.org/~gordon/man.sh > 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. That is appropriate, but to avoid breaking the more common setup with /usr/bin before /usr/local/bin, search_path needs to map the PATH directories /bin and /usr/bin to the man directory /usr/share/man. GNU man does the same, but it is written into /etc/manpath.config. -- Jilles Tjoelker