This is the mail archive of the
cygwin
mailing list for the Cygwin project.
"man" completion in zsh not working
- From: Thorsten Kampe <thorsten at thorstenkampe dot de>
- To: cygwin at cygwin dot com
- Date: Sat, 21 Feb 2004 01:10:32 +0100
- Subject: "man" completion in zsh not working
This has been a problem for a quite a while to me: the man command
doesn't complete to the possible manpages anymore. For example "man
zsha[tab]" should complete to "man zshall". It worked some time ago in
Cygwin zsh and it stills works on my Gentoo Linux box.
Here are the facts: zsh and man are uptodate. I use exactly the same
.zshrc on both hosts and it doesn't contain any MAN* environment
settings. /etc/man.conf is exactly the same on both hosts ("generated
automatically from man.conf.in by the configure script")
,--- * MANPATH statements in /etc/man.conf
| MANPATH /usr/share/man
| MANPATH /usr/X11R6/man
| MANPATH /usr/local/man
| MANPATH /usr/man
`---
,--- * Cygwin host (where it "doesn't work")
| % echo $MANPATH
| :/usr/X11R6/man:/usr/ssl/man
| ^ see the empty path? ($manpath is "'' /usr/X11R6/man /usr/ssl/man")
| % manpath
| /usr/share/man:/usr/X11R6/man:/usr/ssl/man:/usr/man:/usr/local/man
`---
,--- * Linux host (where it "works")
| % echo $MANPATH
| /usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/usr/
| X11R6/man::/opt/sun-jdk-1.4.2.03/man:/usr/qt/3/doc/man:/opt/vmware/man
| % manpath
| zsh: command not found: manpath
`---
/etc/zprofile and /etc/profile.d/zshell.zsh don't contain man
settings. When I manually do "export MANPATH=/usr/share/man" then zsh
does the man completion.
My questions are (I know they might not be specifically Cygwin
related):
1. Where and how is $MANPATH assembled?
2. Where does the path that the "manpath" command shows come from?
3. Why does $MANPATH and "manpath" output differ?
4. Why is /usr/share/man not in $MANPATH?
5. Why is the first entry in $MANPATH empty?
6. How and where can I fix this?
Thanks to all that can help,
Thorsten
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/