home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:10879 comp.windows.x.apps:977
- Newsgroups: comp.unix.questions,comp.windows.x.apps
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!convex!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: backward MANPATH ?
- Originator: tchrist@pixel.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Message-ID: <1992Sep10.034333.2655@news.eng.convex.com>
- Date: Thu, 10 Sep 1992 03:43:33 GMT
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- References: <1992Sep9.191751.22333@eng.ufl.edu> <1992Sep10.010200.12873@eng.ufl.edu>
- Nntp-Posting-Host: pixel.convex.com
- Organization: Convex Computer Corporation, Colorado Springs, CO
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 53
-
- From the keyboard of ruck@zeta.ee.ufl.edu (John R Ruckstuhl Jr):
- :If MANPATH is /usr/man:/usr/local/man ,
- :then
- : /usr/man/man1/cmp.1 is output rather than /usr/local/man/man1/cmp.1
- : /usr/man/man1/split.1 is output rather than /usr/local/man/man1/split.1
- : /usr/man/man1/tail.1 is output rather than /usr/local/man/man1/tail.1
- :but
- : /usr/local/man/man1/cat.1 is output rather than /usr/man/man1/cat.1v
- : /usr/local/man/man1/cut.1 is output rather than /usr/man/man1/cut.1v
- : /usr/local/man/man1/sum.1 is output rather than /usr/man/man1/sum.1v
- :
- :Again -- is this standard "man" behavior?
- :Should the files be renamed to get what I want, or is there an easy way
- :to override this?
-
- I would say that if /usr/man is first, "man cat" should get
- /usr/man/man1/cat.1v before /usr/local/man/man1/cat.1 .
- At least, it works that way under my man program. :-)
-
- :
- :(That is, other than using another implementation of "man" -- thanks for
- :the pointers to Tom Christiansen's (sp?) "perl"-based "man").
-
- Yep, that's the right spelling.
-
- :> To me, it's counter-intuitive; is there an interesting explanation for this?
- :
- :And, what !is! the correct description of the search?
- :Will a ".1l" be found before a ".1v" ?
-
- I'm not sure there *is* a correct description of the search, especially
- since different vendors vary so much. Since you probably don't have
- source to the various vendors' versions of man, it's quite hard to
- know what they're really up to.
-
- All I can tell you is what I decided was reasonable, and that was
- that I couldn't predict what users would think was reasonable. :-)
-
- First, we sort by the user-settable MANPATH, left to right, like PATH.
- Within each MANPATH tree, however, we also sort by whatever MANSECTs
- you have. The default is "ln16823457po"; HP users generally
- "1:1m:6:8:2:3:4:5:7"; I use "2318nlp4567" myself. I do not
- currently implement a per-tree MANSECT setting. Subsections that
- aren't in the MANSECT are by ascii order, putting 1a before 1z.
-
- I kinda think subsections are bogus anyway.
-
- --tom
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
-
- "AT&T -- anything better is illegal."
- -- Keith Lofstrom, comp.unix.bsd, "AT&T sues BSDI" thread
-