tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Kristaps Dzonsons <kristaps@bsd.lv>
To: tech@mdocml.bsd.lv
Subject: Re: MANPATH and overriding/modifying default paths.
Date: Sun, 18 Dec 2011 16:08:20 +0100	[thread overview]
Message-ID: <4EEE01E4.9010604@bsd.lv> (raw)
In-Reply-To: <4EEDFE12.4020702@bsd.lv>

On 18/12/2011 15:52, Kristaps Dzonsons wrote:
> Hi,
>
> A while back, I complained to Ingo that MANPATH is heavy-handed: it
> doesn't allow us to modify the default search path (in, e.g.,
> /etc/man.conf), but only override it.
>
> He mentioned that in manpath(1) used on systems, MANPATH can modify
> instead of override by placemen to colons. To wit:

Ugh, I obviously shouldn't type so quickly... "the manpath(1) utility 
(Mac OS X, FreeBSD, Linux) can modify the default list by placement of 
colons".

>
> MANPATH
> If $MANPATH is set, manpath displays its value rather than determining
> it on the fly. If $MANPATH is prefixed by a colon, then the value of the
> variable is appended to the list determined from the content of the
> configuration files. If the colon comes at the end of the value in the
> variable, then the determined list is appended to the content of the
> variable. If the value of the variable contains a double colon (::),
> then the determined list is inserted in the middle of the value, between
> the two colons.
>
> The enclosed patch does just this for apropos(1), whatis(1), and
> catman(8) (which is also updated with -C like the others). I modified
> the explanation above to be (I hope) a little clearer as to precedence.
>
> Objections?
>
> I personally like this, as on shared machines I usually have a
> scattering of utilities in my ~/bin and would love a ~/man with the
> manuals showing up by default (i.e., manually running mandocdb(8) to
> generate databases then setting MANPATH in my .profile). It has always,
> always annoyed me that I can't do this.
>
> Take care,
>
> Kristaps

--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

  reply	other threads:[~2011-12-18 15:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-18 14:52 Kristaps Dzonsons
2011-12-18 15:08 ` Kristaps Dzonsons [this message]
2011-12-18 19:09   ` Ingo Schwarze
2011-12-18 19:50     ` Kristaps Dzonsons
2011-12-24 22:14 ` Ingo Schwarze
2011-12-24 22:36   ` Kristaps Dzonsons

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EEE01E4.9010604@bsd.lv \
    --to=kristaps@bsd.lv \
    --cc=tech@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).