Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ** matcher does not work anymore
- X-seq: zsh-workers 10650
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: ** matcher does not work anymore
- Date: Tue, 11 Apr 2000 13:18:50 +0200 (MET DST)
- In-reply-to: "Andrej Borsenkow"'s message of Tue, 11 Apr 2000 14:51:25 +0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Andrej Borsenkow wrote:
> This stopped to work:
>
> bor@itsrm2% l /tools/share/zsh
> 3.1.6-dev-22/ site-functions/
> bor@itsrm2% l /to/sh/z/-22<TAB>
> B-e-e-p
>
> It did work at least yesterday.
Ahem. The problem wasn't the `**'. The problem was that I got a bit
confused with the blanks in file-patterns, forgetting to remove
trailing spaces from the tags.
Sorry to everyone...
> Yes, I do use ** matcher.
I know, implemented personally for you ;-)
Bye
Sven
Index: Completion/Core/_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_files,v
retrieving revision 1.7
diff -u -r1.7 _files
--- Completion/Core/_files 2000/04/11 07:57:56 1.7
+++ Completion/Core/_files 2000/04/11 11:17:13
@@ -47,7 +47,7 @@
for def in "$pats[@]"; do
def="${def##[[:blank:]]#}"
while [[ "$def" = *[^\\][[:blank:]]* ]]; do
- sdef="${(M)def#*[^\\][[:blank:]]}"
+ sdef="${${(M)def#*[^\\][[:blank:]]}%%[[:blank:]]#}"
tag="${${sdef#*[^\\]:}%%:*}"
pat="${${${sdef%%:${tag}*}//\\\\:/:}//,/ }"
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author