Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Thorsten Kampe Subject: "man" completion in zsh not working Date: Sat, 21 Feb 2004 01:10:32 +0100 Lines: 55 Message-ID: <16y7i8x50avjv.dlg@thorstenkampe.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: isi-dialin-129-35.isionline-dialin.de User-Agent: 40tude_Dialog/2.0.10.1de 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/