Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Re: Module completion problem
- X-seq: zsh-workers 11453
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: Re: Module completion problem
- Date: Thu, 18 May 2000 09:14:48 +0200 (MET DST)
- In-reply-to: Peter Stephenson's message of Wed, 17 May 2000 22:13:16 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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