zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@u.genie.co.uk>
To: Adam Spiers <adam@spiers.net>
Cc: zsh-workers@sunsite.auc.dk
Subject: Re: _man only uses $manpath
Date: Fri, 17 Sep 1999 13:43:38 +0100	[thread overview]
Message-ID: <37E2377A.D65566BC@u.genie.co.uk> (raw)
In-Reply-To: <19990917122225.B27658@thelonious.new.ox.ac.uk>

Adam Spiers wrote:
> 
> No, the GNU man displays all the man paths it will use if invoked as
> `man -w':

It seems that GNU man itself varies. The GNU man on the debian linux
system I have access to at work prints:
What manual page do you want?
in response to -w with no argument and has no -W option. Note that it
does return an exit code of 1 though so we can still use man -w if we
check the exit code. 

> In the GNU case, you can just grep /etc/man.config for `^MANPATH '.

That must be specific to your linux distribution as opposed to GNU man.

> I'd rather keep guessing as a last resort.  Maybe try man -w and check
> the exit code, then
>   if [[ -r /etc/man.config ]]; then

That's probably the best approach as long as we don't find a system that
breaks it.

Oliver Kiddle


  reply	other threads:[~1999-09-17 12:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-17  9:45 Sven Wischnowsky
1999-09-17 11:22 ` Adam Spiers
1999-09-17 12:43   ` Oliver Kiddle [this message]
1999-09-17 12:54 ` Clint Adams
1999-09-17 13:04   ` Clint Adams
1999-09-17 14:27     ` PATCH: " Oliver Kiddle
1999-09-17 14:44       ` Peter Stephenson
  -- strict thread matches above, loose matches on Subject: below --
1999-09-17  7:23 Sven Wischnowsky
1999-09-17  9:35 ` Oliver Kiddle
1999-09-16 15:54 Adam Spiers
1999-09-16 16:19 ` Andrej Borsenkow
1999-09-16 16:21   ` Adam Spiers
1999-09-16 16:26     ` Andrej Borsenkow

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=37E2377A.D65566BC@u.genie.co.uk \
    --to=opk@u.genie.co.uk \
    --cc=adam@spiers.net \
    --cc=zsh-workers@sunsite.auc.dk \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).