about summary refs log tree commit diff
path: root/Completion/User/_man
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-22 12:35:20 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-22 12:35:20 +0000
commitd139ae56432a82a3dbe11f4be89ba7d886f2c177 (patch)
treef2cd4d874fe13fe923490dd69bd92a0fb3314381 /Completion/User/_man
parentfdb8d5b45550835c00f40591e6ee5b6f6f6fd868 (diff)
downloadzsh-d139ae56432a82a3dbe11f4be89ba7d886f2c177.tar.gz
zsh-d139ae56432a82a3dbe11f4be89ba7d886f2c177.tar.xz
zsh-d139ae56432a82a3dbe11f4be89ba7d886f2c177.zip
zsh-3.1.6-pws-5 zsh-3.1.6-pws-5
Diffstat (limited to 'Completion/User/_man')
-rw-r--r--Completion/User/_man6
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) )