From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21753 invoked by alias); 6 Aug 2017 01:06:13 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22790 Received: (qmail 25061 invoked by uid 1010); 6 Aug 2017 01:06:13 -0000 X-Qmail-Scanner-Diagnostics: from forward3h.cmail.yandex.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(87.250.230.18):SA:0(-0.7/5.0):. Processed in 3.788318 secs); 06 Aug 2017 01:06:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: kp-pav@yandex.ru X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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= Authentication-Results: mxback11j.mail.yandex.net; dkim=pass header.i=@yandex.ru From: "Nikolay Aleksandrovich Pavlov (ZyX)" To: "linuxtechguy@gmail.com" , "zsh-users@zsh.org" In-Reply-To: References: Subject: Re: Does mandir get saved some place? MIME-Version: 1.0 Message-Id: <76131501981203@web60g.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Sun, 06 Aug 2017 04:00:03 +0300 Content-Transfer-Encoding: 7bit Content-Type: text/plain 03.08.2017, 18:03, "Jim" : > 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=" > 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.