From owner-freebsd-current@FreeBSD.ORG Mon May 19 05:22:10 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 006F237B415; Mon, 19 May 2003 05:22:06 -0700 (PDT) Received: from franky.speednet.com.au (franky.speednet.com.au [203.57.65.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABB2C43FA3; Mon, 19 May 2003 05:22:04 -0700 (PDT) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [203.38.96.242])h4JCLxwP045146; Mon, 19 May 2003 22:22:03 +1000 (EST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [172.22.2.17])h4JCLwYm096030; Mon, 19 May 2003 22:21:58 +1000 (EST) (envelope-from andyf@speednet.com.au) Date: Mon, 19 May 2003 22:21:58 +1000 (EST) From: Andy Farkas X-X-Sender: andyf@hewey.af.speednet.com.au To: Ruslan Ermilov In-Reply-To: <20030519120212.GJ17366@sunbay.com> Message-ID: <20030519220657.A93323-100000@hewey.af.speednet.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: man(1) oddity - was: HEADS UP: bzip2(1) compression for manpages... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 19 May 2003 12:22:10 -0000 On Mon, 19 May 2003, Ruslan Ermilov wrote: > > Then realize what I've been trying to tell you: this is not the > problem of root vs. non-root, rather the message is only displayed > if we create a catpage, and we know we'll only display it to the > user after the whole manpage is formatted. My example with > renaming cat8 was ought to hint you about this. Please realise what I've been trying to tell you: there is a difference in the user experience when one types `man ppp` on a 4.8 box and when one types `man ppp` on a 5.1-B box. On a 4.8 box the user types `man ppp`, gets a message, then waits around 10 seconds for the page to display. On a 5.1-B box the user types `man ppp` and DOES NOT GET A MESSAGE BUT HAS TO WAIT 10 SECONDS before the page is displayed. You keep saying that the page will be displayed quickly because groff is piping it to the pager, but this does not happen - there is always a considerable delay perhaps because groff is formatting.. > What are you proposing? Should we display every action that > we're making? I want the same behaviour as is in 4.8-RELEASE. > In other words: THERE IS NOTHING TO WAIT FOR in the case when > a catpage is not created, man(1) already launches the command > that will display you the output; the fact that it's somewhat > slow is irrelevant here. When, on the other hand, a catpage > is getting created, the command that displays the output is > NOT run immediately; rather, a "Please wait, formatting ..." > is displayed, the formatting is done (and the result is saved > to a .cat file), and only after that the command that shows > you the manpage (catpage) is run: So it IS a root vs. non-root thing, because non-root cannot create a catpage anymore. > Scenario 1: Scenario 2: > Please wait..., format | display (simultaneously) > then format, > then display. Scene 1 does not happen for a Normal user anymore. Please understand this. The message does not appear to the user. -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/