1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-17 15:01:40 +02:00

zsh-workers/8062

This commit is contained in:
Tanaka Akira 1999-09-27 13:32:35 +00:00
parent 7718446be8
commit f94eb407c4

View file

@ -14,12 +14,18 @@ if [[ -n $_comp_correct ]]; then
approx="(#a${_comp_correct})"
fi
(( $#manpath )) || manpath=$(manpath 2>/dev/null) ||
if (( ! $#manpath )); then
local mp=$(manpath 2>/dev/null)
[[ "$mp" == *:* ]] && mp=( ${(s.:.)mp} )
manpath=( $mp )
fi
(( $#manpath )) ||
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
if [[ $words[2] = (<->*|l|n) ]]; then
rep=(
$manpath/(sman|man|cat)${words[2]}/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t) )
else