From owner-freebsd-stable@FreeBSD.ORG Mon Jul 21 12:29:53 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 776C937B404 for ; Mon, 21 Jul 2003 12:29:53 -0700 (PDT) Received: from electricrain.com (electricrain.com [64.71.143.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE63743F75 for ; Mon, 21 Jul 2003 12:29:52 -0700 (PDT) (envelope-from fuzzy@electricrain.com) Received: (qmail 21822 invoked by uid 540); 21 Jul 2003 19:29:52 -0000 Date: Mon, 21 Jul 2003 12:29:52 -0700 From: Chris Doherty To: freebsd-stable@freebsd.org Message-ID: <20030721192952.GE23226@zot.electricrain.com> References: <3F19C78A.7030008@mac.com> <20030719233535.GF77396@sunbay.com> <3F19D8D3.1040401@mac.com> <87vftyoy91.fsf@inf.enst.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87vftyoy91.fsf@inf.enst.fr> User-Agent: Mutt/1.4i X-Operating-System: XEmacs X-Koan: mu. Organization: The Inside Foundation Subject: Re: A patch to man to handle "man.1"... X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: chris-freebsd@randomcamel.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2003 19:29:53 -0000 On Sun, Jul 20, 2003 at 02:08:58AM +0200, Samuel Tardieu said: > >>>>> "Chuck" == Chuck Swiger writes: > > Chuck> Thanks for this example. However, if you try the patch, you'll > Chuck> discover that this case also works properly: > > It works only by chance. If ld-elf.so.1 was in section 2 for example, > your patch would prevent it from being found as the section is forced > to 1. > > Sam seems pretty simple: 1) first check to see if there's a manpage for the literal argument (e.g. "ld-elf.so.1") 2) if that fails, treat the trailing digit as a section specifier--i.e. look for "ld-elf.so" in section 1. 3) if that also fails, report that not only was there a "ld-elf.so.1" in any section, but there was also no "ld-elf.so" in section 1. does that cover all cases? seems like this is a useful syntax to add on--anything to make man(7) more usable is a good thing IMO. :-) chris ------------------------------- Chris Doherty chris [at] randomcamel.net "I think," said Christopher Robin, "that we ought to eat all our provisions now, so we won't have so much to carry." -- A. A. Milne -------------------------------