man pages

Felipe Mendel N. Prates felipe.mnp at gmail.com
Mon Jan 9 13:56:51 CET 2006


Bernhard,

I'm not sure what you mean, but here's what I've just tried from the default
system environment (non-Kolab):

# echo $MANPATH
*(null)*
# man bash
*(man page displayed)*
# eval 'MANPATH=test ; export MANPATH'
# man bash
*No manual entry for bash
*# echo $MANPATH
*test*
# MANPATH="/kolab/man:/kolab/local/man::/usr/man:/usr/share/man"; export
MANPATH
# man bash
*(man page displayed)*
# echo $MANPATH
*/kolab/man:/kolab/local/man::/usr/man:/usr/share/man*
# unset MANPATH
# man bash
*(man page displayed)*
# echo $MANPATH
*(null)*

Doing the same steps under the Kolab environment (rc --eval all env) results
in no man page being displayed at all (although 'less' always opens). So, it
seems to me the problem has nothing to do with MANPATH, but something else.
Knowing that, I've tried to recreate Kolab env by typing the lines from
rc.tmp one by one and trying to view a man page. Well, just figured it out:
the problem actually is with the PATH variable. Here is a comparison:

# echo $PATH
*
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
*# man bash
*(man page displayed)*
# type man
*man is /usr/bin/man*
# type less
*less is /usr/bin/less*
# type nroff
*nroff is /usr/bin/nroff*
# PATHBEFOREKOLAB=$PATH; export PATHBEFOREKOLAB
# eval `/kolab/etc/rc --eval all env`
# echo $PATH
*
/kolab/bin:/kolab/sbin:/kolab/local/bin:/kolab/local/sbin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/bin:/sbin:/usr/bin:/usr/sbin
*# man bash
*(less opens, but output is null)*
 # type man
*man is /usr/bin/man*
# type less
*less is /usr/bin/less*
# type nroff
*nroff is /kolab/bin/nroff*
# PATH=$PATHBEFOREKOLAB; export PATH
# echo $PATH
*
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
*# man bash
*(man page displayed again)*
 # type man
*man is /usr/bin/man*
# type less
*less is /usr/bin/less*
# type nroff
*nroff is /usr/bin/nroff*

I'm not sure, but I'd bet that there's something wrong with Kolab's
groff/nroff in my system. I'll try to investigate further, but any help is
welcome!

Best regards,
Felipe


On 1/8/06, Bernhard Reiter <bernhard at intevation.de> wrote:
>
> Am Donnerstag, 5. Januar 2006 17:25 schrieb Felipe Mendel N. Prates:
> > Here it goes:
> > MANPATH="/kolab/man:/kolab/local/man::/usr/man:/usr/share/man"; export
> > MANPATH
>
> Okay, the output seems to have the MANPATH just fine.
>
> > BTW, I use bash (v3.0).
>
> If you eval the above line (in one line)
> ("MANPATH="/kolab/man:/kolab/local/man::/usr/man:/usr/share/man"; export
> MANPATH")
> on the shell prompt, it should give you a MANPATH variable set.
> Especially on your prompt try copying the line and then "echo $MANPATH".
> Is this really empty?
> If not, can you try
> eval 'MANPATH=test ; export MANPATH'
> echo $MANPATH
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/users/attachments/20060109/8144341c/attachment.html>


More information about the users mailing list