home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / question / 10879 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  3.1 KB

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