Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zip completion bug
- X-seq: zsh-users 4519
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Vincent Lefevre <vincent@xxxxxxxxxx>
- Subject: Re: zip completion bug
- Date: Thu, 06 Dec 2001 15:30:32 +0000
- Cc: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20011206141232.GA9870@xxxxxxxxxxxxxx>
- Sender: kiddleo@xxxxxxxxxxxxxxxxx
Vincent Lefevre wrote:
>
> When I type something like
>
> zip file.zip file1 fi[TAB]
>
> the completion doesn't work, i.e. it only works for the first file.
That'll be my fault then. Seems I made a few mistakes in _zip so I'll
have to recheck it sometime.
Index: Completion/Unix/Command/_zip
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_zip,v
retrieving revision 1.3
diff -u -r1.3 _zip
--- Completion/Unix/Command/_zip 2001/10/17 15:14:45 1.3
+++ Completion/Unix/Command/_zip 2001/12/06 15:29:03
@@ -51,7 +51,7 @@
'-x[exclude the following names]' \
'-i[include only the following names]' \
"(-f -d -R -q -c -b -@ -F -FF -A -T -y -e -h -u -m -g -j -l -ll -L -v -z -t -tt -o -D -J -X -n -0 -1 -2 -3 -4 -5 -6 -7 -8 -9):zip file:_files -g '(#i)*.(zip|[jw]ar)'" \
- ':file:->files' && return 0
+ '*:file:->files' && return 0
;;
unzip)
_arguments -C -s \
_____________________________________________________________________
This message has been checked for all known viruses by the
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp
Messages sorted by:
Reverse Date,
Date,
Thread,
Author