Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zip completion bug



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