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

PATCH: Re: Module completion problem



Peter Stephenson wrote:

> Completing after zmodload currently gives me the message
> 
> _path_files:305: unknown file attribute
> 
> I don't know why, since the line in question is trying to expand
> 
>   ./Zsh/*.s[ol](:r)
> 
> which looks quite reasonable to me.  Or should the (:r) already have been
> removed in this case?

It had `...(\:r)' because _files didn't replace `\:' by `:'. I'm
pretty sure I tested this, has it changed lately? Or did I commit a
non-final version?

Bye
 Sven

Index: Completion/Core/_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_files,v
retrieving revision 1.11
diff -u -r1.11 _files
--- Completion/Core/_files	2000/05/11 09:12:57	1.11
+++ Completion/Core/_files	2000/05/18 07:12:56
@@ -53,7 +53,7 @@
   for sdef in "$def[@]"; do
 
     tag="${${sdef#*[^\\]:}%%:*}"
-    pat="${${${sdef%%:${tag}*}//\\\\:/:}//,/ }"
+    pat="${${${sdef%%:${tag}*}//\\:/:}//,/ }"
 
     if [[ "$sdef" = *:${tag}:* ]]; then
       descr="${(Q)sdef#*:${tag}:}"

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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