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

PATCH: A couple of minor completion mistakes



This just fixes a couple of minor things I've noticed in completion
functions.

Oliver

Index: Completion/Unix/Command/_netcat
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_netcat,v
retrieving revision 1.2
diff -u -r1.2 _netcat
--- Completion/Unix/Command/_netcat	15 Mar 2002 16:26:09 -0000	1.2
+++ Completion/Unix/Command/_netcat	26 Jul 2002 13:02:20 -0000
@@ -8,7 +8,7 @@
     _nedit && return
 
 if (( ! $+_nc_args )); then
-  local help="$(_call_program options nc -h < /dev/null 2>&1)"
+  local help="$(_call_program options $words[1] -h < /dev/null 2>&1)"
   local -A optionmap
   optionmap=(
     '*-e prog*' '-e+[program to exec after connect]:prog:_command_names -e'
Index: Completion/Unix/Type/_java_class
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_java_class,v
retrieving revision 1.1
diff -u -r1.1 _java_class
--- Completion/Unix/Type/_java_class	10 Apr 2002 05:24:29 -0000	1.1
+++ Completion/Unix/Type/_java_class	26 Jul 2002 13:02:20 -0000
@@ -1,3 +1,4 @@
+#autoload
 local classpath
 #Should probably add some sort of cache.
 #First use -classpath/-cp, then CLASSPATH, then assume .


This e-mail and any attachment is for authorised use by the intended recipient(s) only.  It may contain proprietary material, confidential information and/or be subject to legal privilege.  It should not be copied, disclosed to, retained or used by, any other party.  If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.  Thank you.



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