Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: _man copes with : delimited manpath



In article <9909271344.AA19699@xxxxxxxxxxxxxxxxx>,
  Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> writes:

> +  local mp=($(manpath 2>/dev/null))

I think this is desired syntax. But it is not implemented yet.

is27e1u11% man <TAB>
_man: unknown file attribute [18]

Index: Completion/User/_man
===================================================================
RCS file: /projects/zsh/zsh/Completion/User/_man,v
retrieving revision 1.1.1.16
diff -u -F^( -r1.1.1.16 _man
--- Completion/User/_man	1999/09/27 14:24:58	1.1.1.16
+++ Completion/User/_man	1999/09/28 09:34:44
@@ -15,7 +15,8 @@
 fi
 
 if (( ! $#manpath )); then
-  local mp=($(manpath 2>/dev/null))
+  local mp
+  mp=($(manpath 2>/dev/null))
   [[ "$mp" == *:* ]] && mp=( ${(s.:.)mp} )
   manpath=( $mp )
 fi
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author