Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: sysmark@helios.physics.utoronto.ca (Mark Bartelt)
Subject: Strange (mis)feature of the "man" command (was Re: OSF1 2.0 memory leaks ...)
Date: Tue, 26 Jul 1994 19:25:45 GMT	[thread overview]
Message-ID: <CtKBAx.MB1@helios.physics.utoronto.ca> (raw)
In-Reply-To: CtK4Iz.Esq@helios.physics.utoronto.ca

Earlier today, I wrote ...

| I just got an e-mail message from Trin Tantsetthi <trin@nucleus.nectec.or.th>,
| who cleared up the confusion.  It turns out that "-terminate" is documented in
| the "Xdec" man page, whereas I'd been looking in the "Xserver" man page (which
| is, after all, where Frank claimed I'd find it).  But to add to the ambiguity,
| one observes that "man Xserver" produces a man page which starts out ...
|
| 	XSERVER(1)
|
| 	NAME
| 	  Xserver - X Window System server
|
| ... whereas "man Xdec" produces one which start out ...
|
| 	Xdec(1X)
|
| 	NAME
| 	  Xdec, Xserver - X Window System server
|
| ... so one could argue that the "Xdec" man page *is* the (well, is an) Xserver
| man page; it's just not the one you get when you type "man Xserver".

... and I thought that was the end of this thread.  Until I got a message from
Richard Eckman <eckman@eos1.larc.nasa.gov>, saying:

|   Just to add to the confusion, I do get the Xdec page when I type
| "man Xserver".  The contents of /usr/man/man1/Xserver.1X are:
|
| .so man1/Xdec.1X
|
|   So, it's more or less a symbolic link to Xdec.1X.  Sounds like
| you've somehow installed a different Xserver man page compared
| with the one that comes standard with OSF/1 v2.0

So I checked, and in fact *our* Xserver.1X contains the same thing as his does!
Then I realized that "man Xserver" was actually giving me the MIT X11R5 Xserver
man page (which we have in /usr/local/man, since we have vanilla MIT X11R5 for
our SunOS users, who want an alternative to the loathsome OpenWindows).

At first I thought I must have a MANPATH defined, which had /usr/local/man in
front of /usr/share/man.  But, no, no MANPATH was defined.  After some fussing
around, I verified that

	man -M /usr/share/man Xserver	==> DEC's Xserver man page
and
	man -M /usr/local/man Xserver	==> MIT's Xserver man page
but
	man Xserver			==> MIT's, not DEC's

Why?  Well, it turns out that the files are named

	/usr/share/man/man1/Xserver.1X
and
	/usr/local/man/man1/Xserver.1

Despite the fact that /usr/share/man comes before /usr/local/man in the default
MANPATH, the "man" command seems to search all the directories for "Xserver.1",
before rescanning them again to look for "Xserver.1X".  This was easy to check:
If I rename /usr/share/man/man1/Xserver.1X to /usr/share/man/man1/Xserver.1 (or,
alternatively, /usr/local/man/man1/Xserver.1 to /usr/local/man/man1/Xserver.1X),
then "man Xserver" will give DEC's Xserver man page.  As long as both man pages
have the same name, all is well.

Also, if there's an "Xserver.1" in /usr/local/man/cat1, "man Xserver" will pick
that one in preference to /usr/share/man/man1/Xserver.1X, though it will choose
/usr/share/man/man1/Xserver.1 over /usr/local/man/cat1/Xserver.1, curiously.

So, my question is:  Is this behavious intentional, or is it a bug?  And if the
former, what's the rationale?

Mark Bartelt                                                       416/978-5619
Canadian Institute for                                    mark@cita.toronto.edu
Theoretical Astrophysics                                  mark@cita.utoronto.ca

"Sheep not busy being shorn are busy frying"   -   Dylan, at a NZ lamb barbecue
              [ singing "It's all right, ma (I'm only bleating)" ]


  reply	other threads:[~1994-07-26 19:25 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-07-21 17:26 OSF1 2.0 memory leaks and process table errors? Shayde
1994-07-21 19:10 ` Torbj|rn Lindgren
1994-07-22 14:22 ` Frank Wortner
1994-07-25 15:07   ` Mark Bartelt
1994-07-25 19:41     ` Frank Wortner
1994-07-26 10:46       ` Mark Bartelt
1994-07-26 15:24         ` Torbj|rn Lindgren
1994-07-26 16:59         ` Mark Bartelt
1994-07-26 19:25           ` Mark Bartelt [this message]
1994-07-28 14:17             ` Strange (mis)feature of the "man" command (was Re: OSF1 2.0 memory leaks ...) Frank Wortner
1994-07-27 18:28         ` OSF1 2.0 memory leaks and process table errors? Frank Wortner
1994-07-26 14:54     ` Torbj|rn Lindgren
1994-08-02 12:38   ` Tolliver Johnny S
1994-08-05 16:44     ` Dave Hill
  -- strict thread matches above, loose matches on Subject: below --
1994-11-23 16:11 rc3/rc3.d problems Andrew Top
1994-11-23 18:13 ` John Kohl
1994-11-24 15:35 ` Tim Llewellyn
1994-11-24 19:10   ` Ron Ginger
1994-11-26 19:59   ` Peter da Silva
1994-11-28 10:20 ` Richard Rogers
1994-10-27 16:59 How much memory? David Rawlinson
1994-10-27 17:41 ` Rick Murphy
1994-10-28 12:34   ` Dan Pop
1994-10-28 19:21     ` Peter da Silva
1994-10-31 20:01     ` Ross Alexander
1994-11-04 21:31       ` Jeff Lanka
1994-10-27 19:39 ` Tim Llewellyn
1994-10-28  1:49   ` Steve Strange
     [not found]     ` <38qasf$9k4@mrnews.mro.dec.com>
1994-10-28 12:21       ` Dan Pop
1994-10-28 20:39         ` Tim Llewellyn, (0272) 288738.
1994-10-28 13:22   ` Stefan Monnier
1994-07-13 17:41 Alpha system clock calls Tony Alvarez
1994-07-18 18:02 ` Jeffrey M. Denham
1994-07-18 19:36   ` Christopher Phillips
1994-07-18 22:53   ` Steve Peltz
1994-07-25  9:14   ` Philip Shearer @ZUO-DC EBS-Team
1994-07-25 18:21     ` Jeffrey M. Denham
1994-08-02  1:01       ` Sinan Karasu
1994-06-09  2:29 telnet prompts for root Lyn Kempter
1994-06-09 22:07 ` Randy M. Hayman
1994-06-15 21:16   ` Tom Jordahl
1994-06-23 23:34     ` The Fantom Ferret
1994-06-24 15:21       ` Dr Marco Luchini
1994-06-28  0:02         ` Andrew Rutherford
1994-06-28 10:08           ` Peter Lister
1994-06-28 23:12             ` Andrew Rutherford
1994-06-30 18:12           ` R. David Murray
1994-07-01 21:46             ` Jeffrey Mogul
1994-04-26 16:51 Trouble with Motif compilation marco broglia
1994-04-26 17:53 ` Frank Wortner
1994-04-26 23:25   ` Paul Southworth
1993-12-14  0:30 ALPHA/OSF1 info wanted; Again Ed McQuillen
1993-12-27 22:10 ` Randy M. Hayman
1993-12-28  3:48   ` -=Runaway Daemon=-
1993-12-28 20:18   ` Andrew Gallatin
1993-12-31 18:47     ` Dan Mosedale
1993-12-31 17:59   ` Wuxu Peng
1993-12-31 18:50     ` Dan Mosedale
1993-12-31 20:22       ` Wuxu Peng
1994-01-04  0:44         ` Dan Mosedale
1993-12-31 19:59     ` ivie
1994-01-03  8:29       ` Wilko Bulte
1994-01-03 13:13       ` John T. Kohl
1994-01-04  9:40         ` Burkhard Neidecker-Lutz
     [not found]     ` <2g1s9h$lbo@nntp2.stanford.edu>
1994-01-01 10:22       ` -=Runaway Daemon=-
1994-01-01 20:43         ` Dave Cherkus
1994-01-02 11:21           ` Martin Cracauer
1994-01-11  3:33     ` Hamish Marson
1994-01-11 16:50       ` Dave Cherkus
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox