Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 May 2003 15:02:12 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Andy Farkas <andyf@speednet.com.au>
Cc:        current@freebsd.org
Subject:   Re: man(1) oddity - was: HEADS UP: bzip2(1) compression for manpages...
Message-ID:  <20030519120212.GJ17366@sunbay.com>
In-Reply-To: <20030519213449.Y93323-100000@hewey.af.speednet.com.au>
References:  <20030519113137.GF17366@sunbay.com> <20030519213449.Y93323-100000@hewey.af.speednet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

--d6iqOn7HZPWKXx18
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 19, 2003 at 09:38:19PM +1000, Andy Farkas wrote:
> On Mon, 19 May 2003, Ruslan Ermilov wrote:
> > On Mon, May 19, 2003 at 09:26:26PM +1000, Andy Farkas wrote:
> > >
> > > Here is a table of what I *really* see:
> > >
> > > FreeBSD-4.8:
> > >             | no catpage     | catpage
> > > Normal user | fmt msg, waits | no msg, no wait
> > > Super user  | fmt msg, waits | no msg, no wait
> > >
> > > FreeBSD-5.1-B:
> > >
> > > Normal user | no msg, waits  | no msg, no wait
> > > Super user  | fmt msg, waits | no msg, no wait
> > >
> > >
> > > The difference is Normal user.
> > >
> > This example is wrong.  With your example you're timing the
> > formatting of the whole manpage, and I'm telling you that
> > normal man(1) invocation (with PAGER) will start showing you
> > something on your terminal much sooner.
>=20
> No, thats what I *really* *see* without redirection or anything. Plain old
> `man ppp` command.  I only used the `> /dev/null` example because the same
> thing is experienced by the user.
>=20
> Please boot up 5.1-B on a slow box and type 'man ppp'. You'll see what I
> mean then.
>=20
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.

What are you proposing?  Should we display every action that
we're making?

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:

Scenario 1:		Scenario 2:
Please wait...,		format | display (simultaneously)
then format,
then display.


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

--d6iqOn7HZPWKXx18
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+yMfEUkv4P6juNwoRAk9dAJ9ZhXss6ktdO+YiWtZE/UgcchFPBACgjV2m
Ogx2/BBIGnp1jPSGTtAkae0=
=4Nq8
-----END PGP SIGNATURE-----

--d6iqOn7HZPWKXx18--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030519120212.GJ17366>