From owner-freebsd-stable Fri Sep 24 12:51:43 1999 Delivered-To: freebsd-stable@freebsd.org Received: from gndrsh.dnsmgr.net (GndRsh.dnsmgr.net [198.145.92.4]) by hub.freebsd.org (Postfix) with ESMTP id AFD9D14F05 for ; Fri, 24 Sep 1999 12:51:11 -0700 (PDT) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.9.3/8.9.3) id MAA03907; Fri, 24 Sep 1999 12:51:01 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <199909241951.MAA03907@gndrsh.dnsmgr.net> Subject: Re: man displays pages twice! In-Reply-To: <19990924153104.E25080@pir.net> from Peter Radcliffe at "Sep 24, 1999 03:31:05 pm" To: pir@pir.net (Peter Radcliffe) Date: Fri, 24 Sep 1999 12:51:01 -0700 (PDT) Cc: freebsd-stable@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > "Rodney W. Grimes" probably said: > > Hummm... hey mpp, is this the functionality that we talked about > > that Berkeley man had in that it would show you all sections of > > the manual that had a page by the same name gone haywire in GNU's > > version of man??? > > > This may be a bugger up of the proper man behavior that works in > > the Berkeley man command that was retired to the attic many years > > ago in that if the arg to man exists in more than one section of > > the man pages it is suppose to display all the so named man pages. > > > > An example is ``man man'' which _should_ show you man1/man and > > man7/man, but only shows you man1/man. I'll bet 90% of users > > don't even know that man7/man exists... due to this bug... > > Thats what `man -k man` and `man 7 man` are for. Personally I'd much > rather it display one page and indeed this is the documented default > behaviour; > > -a By default, man will exit after displaying the first manual > page it finds. Using this option forces man to display all > the manual pages that match name, not just the first. Blech... going all the way back to SunOS 3.5 man(1) based on the Berkeley code didn't need this. Documented default behavior has changed.. wonder if someone didn't know that man blah already did the right thing... sigh.. Also Berkely and GNU disagree on what -a does slightly: -a Display all of the manual pages for a specified section and name combination. (Normally, only the first manual page found is dis- played.) Note the more explicit ``section and name combination''. What does gnu man -a 1 man produce? Okay, it works correctly but the above implies that the section is ignored by not mentioning it. -- Rod Grimes - KD7CAX - (RWG25) rgrimes@gndrsh.dnsmgr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message