Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: unzip and _path_files interaction
- X-seq: zsh-workers 17252
- From: Sven Wischnowsky <wischnow@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: unzip and _path_files interaction
- Date: Wed, 29 May 2002 17:03:57 +0200
- In-reply-to: <Pine.LNX.4.44.0205290752310.29013-100000@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <15604.48114.57479.460088@xxxxxxxxxxxxxxxxxx> <Pine.LNX.4.44.0205290752310.29013-100000@xxxxxxxxxxxxxxxx>
Bart Schaefer wrote:
> ...
>
> I think (z) should keep working the way it does, or at least we need
> somthing that does work the way it now does. So for the time being I'd
> go with the second patch.
I was feeling the same way...
Bye
Sven
Index: Completion/Unix/Type/_path_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_path_files,v
retrieving revision 1.17
diff -u -r1.17 _path_files
--- Completion/Unix/Type/_path_files 21 May 2002 07:35:34 -0000 1.17
+++ Completion/Unix/Type/_path_files 29 May 2002 15:03:36 -0000
@@ -23,9 +23,11 @@
(( $tmp1[(I)-[/g]*] )) && haspats=yes
(( $tmp1[(I)-g*] )) && gopt=yes
if (( $tmp1[(I)-/] )); then
- pats=( '*(-/)' ${(z)${(M)tmp1:#-g*}#-g} )
+ pats="${(@)${(@M)tmp1:#-g*}#-g}"
+ pats=( '*(-/)' ${${(z):-x $pats}[2,-1]} )
else
- pats=( "${(@z)${(@M)tmp1:#-g*}#-g}" )
+ pats="${(@)${(@M)tmp1:#-g*}#-g}"
+ pats=( ${${(z):-x $pats}[2,-1]} )
fi
pats=( "${(@)pats:# #}" )
--
Sven Wischnowsky wischnow@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author