From 5dc36c40c322dcbdd9830e523810388c2ffea8a9 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Thu, 5 Apr 2018 20:27:39 +0900 Subject: 42585: improve completion for libarchive-based tar Offer all compressed archives if no compression flag is specified because libarchive can automaticaly recoginize them. cf. 42574 (Eitan Adler). --- Completion/Unix/Command/_tar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix/Command') diff --git a/Completion/Unix/Command/_tar b/Completion/Unix/Command/_tar index cff50562e..3e44b98f7 100644 --- a/Completion/Unix/Command/_tar +++ b/Completion/Unix/Command/_tar @@ -21,7 +21,7 @@ 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. -if _pick_variant gnu=GNU unix --version; then +if _pick_variant gnu=GNU libarchive=libarchive unix --version; then case "$($service --version)" in ("tar (GNU tar) "(#b)([0-9.-]##)*) autoload -z is-at-least -- cgit v1.2.3