How command "manpath" works?

Ask a Question related to Debian, Design and Development.

  1. #1

    Default How command "manpath" works?

    I downloaded j2sdk from SUN and extracted it to /usr/local
    and I found the /usr/local/j2sdk/man is in the list of command "manpath"

    But I haven't set manpath manully and it's not listed in /etc/manpath.config

    I'm wondering how manpath works, who can give me a hint or tell me in
    which package I can found the source code of "manpath" so I can check it
    myself?

    Thank u very much!!
    --
    Zhao YouBing, Ph.D student
    State Key Lab of CAD&CG,Zhejiang University,
    Hangzhou, 310027, P.R.China
    Tel : 0571-87951045(O), 87933444(H)
    Email: [email]zhaoyb@cad.zju.edu.cn[/email]
    MSN : [email]zhaoyoubing@hotmail.com[/email]


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Zhao You Bing Guest

  2. Similar Questions and Discussions

    1. "Weld" command in "Corel Draw"
      Hi there: I'm new to Illustrator but have used Corel Draw in the past. In Corel Draw there was a "Weld" command. What this did was create a drawing...
    2. Vacation works for "real" email address but not for aliases -- except for some users
      Forgive me for my ignorance but sendmail is greek to me. So here's my problem, with as much info as I can think of. I am running Red Hat 9 with...
    3. copying value of DDL in a Datagrid "pre-edit command" to value in "post edit command"
      Hi all! I have Datagrid. Within that datagrid I have a drop down list that I set up some values in (a "collection") I set up an edit command...
    4. "eject" command only works for root
      Dear all, The "eject" command (which opens the CD tray) works as expected if I run it as root. But as a common user, typing "eject" on the...
    5. Help! "Get" works, "Post" doesn't (ASP VB)
      For reasons of security, I'd like to "post" form data rather than "get" it. I'm using the info to filter a recordset to create a Session Variable. ...
  3. #2

    Default Re: How command "manpath" works?

    On Wed, Aug 06, 2003 at 02:51:35PM +0800, Zhao You Bing wrote:
    > I downloaded j2sdk from SUN and extracted it to /usr/local
    > and I found the /usr/local/j2sdk/man is in the list of command "manpath"
    >
    > But I haven't set manpath manully and it's not listed in /etc/manpath.config
    If you haven't set $MANPATH manually, then man and friends guess it
    based on the value of $PATH. From get_manpath() in the source (and read
    /etc/manpath.config for man_db.config here):

    /*
    * For each directory in the user's path, see if it is one of the
    * directories listed in the man_db.config file. If so, and it is
    * not already in the manpath, add it. If the directory is not listed
    * in the man_db.config file, see if there is a subdirectory `../man' or
    * `man'. If so, and it is not already in the manpath, add it.
    * Example: user has $HOME/bin in his path and the directory
    * $HOME/man exists -- the directory $HOME/man will be added
    * to the manpath.
    */
    > I'm wondering how manpath works, who can give me a hint or tell me in
    > which package I can found the source code of "manpath" so I can check it
    > myself?
    man-db. (I'm the maintainer.)

    Cheers,

    --
    Colin Watson [cjwatson@flatline.org.uk]


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Colin Watson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139