From 3622f2f9e531ddbb243b39774546cf11ee9ccf3e Mon Sep 17 00:00:00 2001 From: Igor Murzov Date: Thu, 6 Sep 2012 17:58:35 +0400 Subject: [PATCH] tar: Fix detection if the $prev is a tar file. It also makes the completion work better with long options (Debian: #685223) --- completions/tar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/tar b/completions/tar index 45f3ff36..a18fb785 100644 --- a/completions/tar +++ b/completions/tar @@ -56,7 +56,7 @@ _tar() esac case $prev in - *$ext) + *${ext:-$tars}) # complete on files in tar file # # get name of tar file from command line