diff options
Diffstat (limited to 'Completion/User/_man')
-rw-r--r-- | Completion/User/_man | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/User/_man b/Completion/User/_man index ffdac91cd..88d2118c0 100644 --- a/Completion/User/_man +++ b/Completion/User/_man @@ -14,11 +14,11 @@ if [[ -n $_comp_correct ]]; then approx="(#a${_comp_correct})" fi -# `sman' is the SGML manual directory for Solaris 7. - -[ "$manpath" ] || manpath=$(manpath 2>/dev/null) || \ +(( $#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) ) |