Re: No reference to files ???

2003-11-30 Thread Matthew Seaman
On Sat, Nov 29, 2003 at 09:20:17PM -0500, Xpression wrote:
> Hi all, I'm wondering if there is a way to show man
> pages and access files like if they were on $PATH, I mean
> when I compile a package and install it, there are no
> reference to man pages and the "executable" like when I
> install it from the CD...

I don't really understand what you're asking here.  Do you mean
something like -- "If I have more than one version of a program
installed at different locations on my $PATH, can I arrange for the
man(1) command to show me the man page corresponding to the version of
the program that comes first on the $PATH?"

If so, then: "Yes".  In fact it happens automatically. eg:

% env PATH=/usr/local/bin:$PATH man dig | head -10
DIG(1)  DIG(1)



NAME
   dig - DNS lookup utility

SYNOPSIS
   dig  [  @server  ]  [ -b address ]  [ -c class ]  [ -f filename ]  [ -k
   filename ]  [ -p port# ]  [ -t type ]  [ -x addr ]  [ -y name:key ]   [


which is the man page for dig(1) from the bind9 port -- compare to:

%  man dig | head -10
DIG(1)  FreeBSD General Commands Manual DIG(1)

NAME
 dig -- send domain name query packets to name servers

SYNOPSIS
 dig [EMAIL PROTECTED] domain [] [] [+]
 [-] [%comment]

DESCRIPTION


which is the man page for dig(1) from the bind8 version bundled with
the system.

This is all controlled by the manpath(1) utility built into the man(1)
command.  See also /etc/manpath.config 

% manpath

/usr/share/man:/usr/local/man:/usr/X11R6/man:/usr/local/jdk1.4.2/man:/usr/share/perl/man:/usr/share/openssl/man:/usr/local/lib/perl5/5.8.2/man:/usr/local/lib/perl5/5.00503/man

If you want to overrule where or in what order the man command
searches for man pages, you can tell it to look in specific places on
the command line:

% man -M /usr/local/man:/usr/X11R6/man dig

If you want to see what man pages are available for a specific command:

% man -a -w dig
/usr/share/man/cat1/dig.1.gz (source: /usr/share/man/man1/dig.1.gz)
/usr/local/man/cat1/dig.1.gz (source: /usr/local/man/man1/dig.1.gz)

There's plenty of other knobs to twiddle to do with the man command,
all described faithfully in various man pages, but I'll leave it as an
exercise for you to find them.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


No reference to files ???

2003-11-29 Thread Xpression
Hi all, I'm wondering if there is a way to show man
pages and access files like if they were on $PATH, I mean
when I compile a package and install it, there are no
reference to man pages and the "executable" like when I
install it from the CD...


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"