about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-09 11:40:11 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-09 11:40:11 +0000
commitb1e5dd85179a2ffd2d0235493d40e258847fa596 (patch)
treec1ddeb881ef99640a7b545c2071e2b347e094780
parentd9e72bbb60a8172921f2b3ac47bdeccce18ccab4 (diff)
downloadzsh-b1e5dd85179a2ffd2d0235493d40e258847fa596.tar.gz
zsh-b1e5dd85179a2ffd2d0235493d40e258847fa596.tar.xz
zsh-b1e5dd85179a2ffd2d0235493d40e258847fa596.zip
manual/8139
-rw-r--r--Completion/User/_man9
1 files changed, 1 insertions, 8 deletions
diff --git a/Completion/User/_man b/Completion/User/_man
index fd5702227..0c148a518 100644
--- a/Completion/User/_man
+++ b/Completion/User/_man
@@ -14,14 +14,7 @@ if [[ -n $_comp_correct ]]; then
   approx="(#a${_comp_correct})"
 fi
 
-if (( ! $#manpath )); then
-  local mp
-  mp=($(manpath 2>/dev/null))
-  [[ "$mp" == *:* ]] && mp=( ${(s.:.)mp} )
-  manpath=( $mp )
-fi
-
-(( $#manpath )) ||
+(( $#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.