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

Re: help with command completion



In article <200001051342.OAA10929@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
  Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:

> +  _wanted printers expl printer && compadd "$expl" - "$_lp_cache[@]"

"$expl" should be "$expl[@]".

Index: Completion/User/_lp
===================================================================
RCS file: /projects/zsh/zsh/Completion/User/_lp,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 _lp
--- Completion/User/_lp	2000/01/05 15:00:19	1.1.1.2
+++ Completion/User/_lp	2000/01/05 23:45:16
@@ -15,7 +15,7 @@
 fi
 
 if compset -P -P || [[ "$words[CURRENT-1]" = -P ]]; then
-  _wanted printers expl printer && compadd "$expl" - "$_lp_cache[@]"
+  _wanted printers expl printer && compadd "$expl[@]" - "$_lp_cache[@]"
 else
   if [[ "$words[1]" = (lpq|lprm) ]]; then
     if [[ "$words" = *-P* ]]; then
-- 
Tanaka Akira



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