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

PATCH: minor _tar tweak



I've been wondering why "tar -^D" doesn't show me anything...

Index: Completion/Unix/Command/_tar
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_tar,v
retrieving revision 1.6
diff -u -r1.6 _tar
--- Completion/Unix/Command/_tar	25 Jun 2006 16:15:02 -0000	1.6
+++ Completion/Unix/Command/_tar	10 Oct 2006 22:17:20 -0000
@@ -154,6 +154,8 @@
 
   _wanted files expl 'file from archive' _multi_parts / _tar_cache_list
 elif (( CURRENT == 2 )); then
+  # ignore leading - since we complete option letters anyway
+  compset -P -
   _values -s '' 'tar function' \
     '(c t u x)A[append to an archive]' \
     '(A t u x)c[create a new archive]' \

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



Messages sorted by: Reverse Date, Date, Thread, Author