zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: minor _tar tweak
@ 2006-10-10 22:17 Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2006-10-10 22:17 UTC (permalink / raw)
  To: Zsh hackers list

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@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-10 22:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-10 22:17 PATCH: minor _tar tweak Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).