From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7380 invoked from network); 6 Oct 1999 16:23:29 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 6 Oct 1999 16:23:29 -0000 Received: (qmail 12779 invoked by alias); 6 Oct 1999 16:22:29 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8139 Received: (qmail 12743 invoked from network); 6 Oct 1999 16:22:27 -0000 Message-ID: <37FB7732.77D9B5EA@u.genie.co.uk> Date: Wed, 06 Oct 1999 17:22:10 +0100 From: Oliver Kiddle X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Zsh workers CC: Adam Spiers Subject: PATCH: Re: _man copes with : delimited manpath References: <19990927141724.B10336@thelonious.new.ox.ac.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Adam Spiers wrote: > On my system, `manpath' generates colon-delimited paths, rather than > space-delimited ones. This patch solves that problem. It also fixes > what I think is a typo, but someone should check this. Sorry, I wasn't thinking properly when I wrote it - all manpath commands I can find return a colon delimited string. I prefered the more succinct way it was done so I'd suggest the following patch. An alternative would be to assign to MANPATH instead of manpath. Oliver Kiddle *** Completion/User/_man.bak Wed Oct 6 17:09:43 1999 --- Completion/User/_man Wed Oct 6 17:09:58 1999 *************** *** 14,25 **** approx="(#a${_comp_correct})" fi ! (( $#manpath )) || manpath=$(manpath 2>/dev/null) || manpath=( /usr/man(-/N) /(opt|usr)/(dt|share|X11R6|local)/(cat|)man(-/N) ) # `sman' is the SGML manual directory for Solaris 7. ! if [[ $words[2] = (<->*|ln) ]]; then rep=( $manpath/(sman|man|cat)${words[2]}/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t) ) else --- 14,25 ---- approx="(#a${_comp_correct})" fi ! (( $#manpath )) || manpath=( ${(s.:.)$(manpath 2>/dev/null)} ) || manpath=( /usr/man(-/N) /(opt|usr)/(dt|share|X11R6|local)/(cat|)man(-/N) ) # `sman' is the SGML manual directory for Solaris 7. ! if [[ $words[2] = (<->*|l|n) ]]; then rep=( $manpath/(sman|man|cat)${words[2]}/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t) ) else