From fdff42eaa70f115104d3e4269593ed553fa32659 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sat, 24 Jun 2006 19:28:55 +0000 Subject: 22511: complete compressed archive filenames for GNU tar even when a compression option is not specified. --- Completion/Unix/Command/_tar | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Completion/Unix/Command/_tar') diff --git a/Completion/Unix/Command/_tar b/Completion/Unix/Command/_tar index 3e3b3fc51..b3a590d72 100644 --- a/Completion/Unix/Command/_tar +++ b/Completion/Unix/Command/_tar @@ -21,6 +21,8 @@ local _tar_cmd tf tmp tmpb del index # from some of the possible long options, and from the second word if # that does not start with a hyphen. +_pick_variant gnu=GNU unix --version + tmp=("${(@M)words:#-[^-]*}") _tar_cmd="${(j::)tmp#-}" -- cgit v1.2.3-70-g09d2