Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: minor _tar tweak
- X-seq: zsh-workers 22860
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: minor _tar tweak
- Date: Tue, 10 Oct 2006 23:17:56 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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