tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Kristaps Dzonsons <kristaps@bsd.lv>
To: tech@mdocml.bsd.lv
Cc: jmc@openbsd.org
Subject: Re: chdir() in mandocdb
Date: Sat, 10 Dec 2011 17:08:20 +0100	[thread overview]
Message-ID: <4EE383F4.5000906@bsd.lv> (raw)
In-Reply-To: <20111210141131.GD6375@iris.usta.de>

>>>> I notice that the chdir() for mandocdb()'s OP_NEW is into the base
>>>> directory of the manuals (e.g., /usr/share/man).  However, when I
>>>> run mandocdb over OpenBSD 5.0, I see a few inconsistencies:
>>>>
>>>>    /usr/X11R6/man/man3/XUngrabDevice.3
>
>>> That was a bug in Xenocara, i fixed it here:
>>>
>>> http://www.openbsd.org/cgi-bin/cvsweb/xenocara/lib/libXi/man/ \
>>>    XIUngrabDevice.man
>
> [...]
>>>> All of these have an `so' in the current directory.  Looking at
>>>> roff(7) for `so', this is the correct behaviour.
>
>>> No; the roff(7) manual muddles the point.
>>> What it says is correct, but only makes sense
>>> when you already know that man(1) does a chdir(2)
>>> to the root of the tree.
>
>> Can we disambiguate roff(7) to this effect, assuming that the man(1)
>> behaviour is consistent across operating systems?
>
> Well, it has to be, X manuals enforce that consistency.
>
> Hence, OK for the following patch?

If Jason ok's it, then it's fine by me too.

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

      reply	other threads:[~2011-12-10 16:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-07 11:11 Kristaps Dzonsons
2011-12-08  1:34 ` Ingo Schwarze
2011-12-08  8:07   ` Kristaps Dzonsons
2011-12-10 14:11     ` Ingo Schwarze
2011-12-10 16:08       ` Kristaps Dzonsons [this message]

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=4EE383F4.5000906@bsd.lv \
    --to=kristaps@bsd.lv \
    --cc=jmc@openbsd.org \
    --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).