From owner-freebsd-current@FreeBSD.ORG Sat Sep 11 07:26:05 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 466A1106564A for ; Sat, 11 Sep 2010 07:26:05 +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 06D158FC12 for ; Sat, 11 Sep 2010 07:26:04 +0000 (UTC) Received: by iwn34 with SMTP id 34so3428758iwn.13 for ; Sat, 11 Sep 2010 00:26:04 -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=BGq2HVLD04uUOD8vj9aWDZEqn7cMbdzhVvxraPLn8jY=; b=cKQe0eMss29yVOOsaPHSI69rHPXu21HMbdyUuhNwoen94e/6wlkPkPV2z31NIqMlOo u6jUYZ7IJHFPkpdPML/EtsxENme217gHVf8p772h4cG4AGi0UxE+fW37PkUuej7m/eRl qO/+uHNuDQheEW4m1N3XCILrpgoCPsqAQDKf4= 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=Nj2RzpYSB0jLc0yuFBHQCNz3bguj05rnOviw5fU2s9KfFTWwKrbgutzBl3CvzIy9g+ gmomzkXg7TFAmgNLW7fmactFeQS3/XZzHYljuR7ti3wjg1Dtb40KowcCy256TsN2inEi 6pRB8H1eSrcdz98bdv91Q9tgBKrBjIOniRRxk= MIME-Version: 1.0 Received: by 10.231.157.212 with SMTP id c20mr2249144ibx.186.1284189964436; Sat, 11 Sep 2010 00:26:04 -0700 (PDT) Sender: gordon.tetlow@gmail.com Received: by 10.231.156.78 with HTTP; Sat, 11 Sep 2010 00:26:04 -0700 (PDT) In-Reply-To: <868w3aem0a.fsf@gmail.com> References: <86sk2b79oi.fsf@gmail.com> <868w3aem0a.fsf@gmail.com> Date: Sat, 11 Sep 2010 00:26:04 -0700 X-Google-Sender-Auth: 9yhgucrIKniFrZ1Ci_V1dmBlrNc Message-ID: From: Gordon Tetlow To: Anonymous X-Mailman-Approved-At: Sat, 11 Sep 2010 11:01:29 +0000 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: Sat, 11 Sep 2010 07:26:05 -0000 On Thu, Sep 9, 2010 at 12:48 PM, Anonymous wrote: > 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. > > $ man -aw gperf # man.sh > /usr/share/man/en.UTF-8/man1/gperf.1.gz > /usr/share/man/man1/gperf.1.gz > LOCALBASE/man/man1/gperf.1.gz > > $ man -aw gperf # gnu man > LOCALBASE/man/man1/gperf.1.gz > /usr/share/man/en.UTF-8/man1/gperf.1.gz > > > $ echo $PATH > > > LOCALBASE/libexec/ccache:HOME/.bin:LOCALBASE/sbin:LOCALBASE/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:HOME/blah/bin > Fixed this up to no longer add an unconditional system search path. While I'm not planning on supporting MANPATH_MAP, I have added special casing for /bin and /usr/bin as encountered in PATH. > And it doesn't show anything when there are no arguments, not even > returning with exit code > 0. > > $ man # man.sh > > $ man # gnu man > What manual page do you want? > zsh: exit 1 man > Added. Updated drop location at: http://people.freebsd.org/~gordon/man.shar Thanks for the feedback, Gordon