zsh-workers
 help / color / mirror / code / Atom feed
* _man only uses $manpath
@ 1999-09-16 15:54 Adam Spiers
  1999-09-16 16:19 ` Andrej Borsenkow
  0 siblings, 1 reply; 11+ messages in thread
From: Adam Spiers @ 1999-09-16 15:54 UTC (permalink / raw)
  To: zsh workers mailing list

Shouldn't _man calculate man page completions using `man -w' rather
than $manpath?  For me, $manpath is always empty, so man doesn't
complete anything.

Is it safe to assume that `-w' is present in all sensible versions of
man?


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: _man only uses $manpath
@ 1999-09-17  7:23 Sven Wischnowsky
  1999-09-17  9:35 ` Oliver Kiddle
  0 siblings, 1 reply; 11+ messages in thread
From: Sven Wischnowsky @ 1999-09-17  7:23 UTC (permalink / raw)
  To: zsh-workers


Andrej Borsenkow wrote:

> On Thu, 16 Sep 1999, Adam Spiers wrote:
> 
> > 
> > Sounds like we need some way of intelligently figuring out a solution
> > for both scenarios.  Does `man -w' return an error of some sort on
> > your system which we could test for?
> > 
> > 
> 
> Well, exit code != 0. I have no idea, how reliable it is (different
> versions etc)

Same here for Digital Unix. Maybe we should test $OSTYPE?

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: _man only uses $manpath
@ 1999-09-17  9:45 Sven Wischnowsky
  1999-09-17 11:22 ` Adam Spiers
  1999-09-17 12:54 ` Clint Adams
  0 siblings, 2 replies; 11+ messages in thread
From: Sven Wischnowsky @ 1999-09-17  9:45 UTC (permalink / raw)
  To: zsh-workers


Oliver Kiddle wrote:

> Sven Wischnowsky wrote:
> > Andrej Borsenkow wrote:
> > > On Thu, 16 Sep 1999, Adam Spiers wrote:
> > > > Sounds like we need some way of intelligently figuring out a solution
> > > > for both scenarios.  Does `man -w' return an error of some sort on
> > > > your system which we could test for?
> > > Well, exit code != 0. I have no idea, how reliable it is (different
> > > versions etc)
> > 
> > Same here for Digital Unix. Maybe we should test $OSTYPE?
> 
> The only man I can find which does support -w or --path is the GNU one.
> The exit code of != 0 seems fine on the systems I've looked at provided
> stderr is redirected.
> 
> What are you trying to achieve with man -w - find a default manpath to
> use if $manpath is unset? As far as I can tell man -w only gives you the
> location of a specific man page which isn't entirely useful for finding
> a default manpath as the default can (and often will) contain more than
> one directory. The only way I know of finding the default manpath is by
> running the man binary through strings. Maybe we could use a for loop to
> guess possible man directories and check them.

Yes, a la `_x_color'.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~1999-09-17 13:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-16 15:54 _man only uses $manpath Adam Spiers
1999-09-16 16:19 ` Andrej Borsenkow
1999-09-16 16:21   ` Adam Spiers
1999-09-16 16:26     ` Andrej Borsenkow
1999-09-17  7:23 Sven Wischnowsky
1999-09-17  9:35 ` Oliver Kiddle
1999-09-17  9:45 Sven Wischnowsky
1999-09-17 11:22 ` Adam Spiers
1999-09-17 12:43   ` Oliver Kiddle
1999-09-17 12:54 ` Clint Adams
1999-09-17 13:04   ` Clint Adams

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