Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#535851: zsh: completion does not work anymore with some specific applications
- X-seq: zsh-workers 27208
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Sylvain Chevillard <sylvain.chevillard@xxxxxxxxxxx>, 535851@xxxxxxxxxxxxxxx
- Subject: Re: Bug#535851: zsh: completion does not work anymore with some specific applications
- Date: Wed, 5 Aug 2009 00:24:59 +0000
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <20090804165438.1613184r44tad8ry@xxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Sylvain Chevillard <sylvain.chevillard@xxxxxxxxxxx>, 535851@xxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20090705150916.2495.13954.reportbug@xxxxxxxxxxxxxxxxxxxxxx> <20090705182505.GA23176@xxxxxxxx> <4A50FC4E.8050200@xxxxxxxxxxx> <20090710234211.GA6977@xxxxxxxx> <4A608C61.8080602@xxxxxxxxxxx> <20090718131338.GA13923@xxxxxxxx> <4A756598.9040403@xxxxxxxxxxx> <20090802152642.GA1792@xxxxxxxx> <20090804165438.1613184r44tad8ry@xxxxxxxxxxxxxxxxxxx>
On Tue, Aug 04, 2009 at 04:54:38PM +0200, Sylvain Chevillard wrote:
> The line that causes trouble is the following:
>
> zstyle ':completion:*' file-sort access
So that's failing because it's generating patterns like
*.(#i)pdf(oa#q-.)
I hope this does the right thing.
Index: Completion/Unix/Type/_path_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_path_files,v
retrieving revision 1.45
diff -u -r1.45 _path_files
--- Completion/Unix/Type/_path_files 13 Mar 2009 09:59:58 -0000 1.45
+++ Completion/Unix/Type/_path_files 5 Aug 2009 00:23:32 -0000
@@ -160,7 +160,7 @@
if _have_glob_qual "$tmp1" complete; then
# unbalanced parenthesis is correct: match[1] contains the start,
# match[5] doesn't contain the end.
- tmp2+=( "${match[1]}${sort}${match[5]})" )
+ tmp2+=( "${match[1]}${match[5]})(${sort})" )
else
tmp2+=( "${tmp1}(${sort})" )
fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author