Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Does mandir get saved some place?
- X-seq: zsh-users 22790
- From: "Nikolay Aleksandrovich Pavlov (ZyX)" <kp-pav@xxxxxxxxx>
- To: "linuxtechguy@xxxxxxxxx" <linuxtechguy@xxxxxxxxx>, "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Re: Does mandir get saved some place?
- Date: Sun, 06 Aug 2017 04:00:03 +0300
- Authentication-results: mxback11j.mail.yandex.net; dkim=pass header.i=@yandex.ru
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1501981203; bh=Y5QfmZAiGJ1ULEBQTXoT8OLuIBAjeD1N95Sl4Dfqu7I=; h=From:To:In-Reply-To:References:Subject:Message-Id:Date; b=r9iW6IP3kaerHdbeMXk927TzTpxY/q5SRbHqpxNA5kW1tdvmKALg2Gg2/gf6qMF9I yICwTMtI+TyhNsn0bvVfbTW6RzGRp8HlGQpsGfD+7QG3MGCbMkAw4wbq9+BmwN2UzG 0TrSjcawUI0K8vfq8I74fAOJTJFfW6vIrCuSISXc=
- In-reply-to: <CA+rB6G+XTk5JvKQQ=8RTic4j+92UgvBpn6p6Q=P0hJBmz1uoaA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CA+rB6G+XTk5JvKQQ=8RTic4j+92UgvBpn6p6Q=P0hJBmz1uoaA@mail.gmail.com>
03.08.2017, 18:03, "Jim" <linux.tech.guy@xxxxxxxxx>:
> Hi,
>
> Sorry if I missed this in the documentation, but so far I have been unable
> to find what I'm looking for. Google doesn't always find things either.
>
> First, thanks for the fact that zsh is very version conscious. This makes
> it very easy to test a particular build of zsh. Not all distributions take
> advantage of this, but that's something to take up with the distribution.
> I just wish more applications would take this approach. I digress.
>
> With the fact that the configure script has the option "mandir=<some dir>"
> I assumed(bad thing to do) that there would be an easy way to discover
> where the man pages were saved. If there is, so far I haven't found it. My
> reasoning for this is, if I'm testing a particular build, I would like to
> have
> available the pages for that build if they exist. I assumed(I know)
> that is why "mandir" is there, to make this possible.
>
> Is there a variable of something else that can be accessed to tell
> someone where a particular zsh build saved the man pages? If not,
> would it be unreasonable to ask that a variable like "mandir" be set with
> the path to those man pages? This would make it so much easier to
> set MANPATH. For me it would even be better if zsh automatically
> added a path to them before the normal locations. I'm sure others
> would disagree. An option allowing such behaviour would allow a user
> to set this to meet there own needs.
>
> Again, if I missed this in the documentation, sorry for the noise.
>
> Sincerely,
>
> Jim
You can probably use `zsh -fc 'printf "%s" $module_path[1]:h:h:h/share/man'`. Should work fine as long as you are only setting single installation prefix based on which other locations are computed and not other installation locations explicitly. All versions I ever needed have `$module_path[1]` set to something like `{prefix}/lib(64)?/zsh/$ZSH_VERSION`, so three `:h` are there to get rid of `lib*`, `zsh` and `$ZSH_VERSION` components.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author