summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-08-04 11:41:06 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-08-04 11:41:06 +0000
commit1f03591f216652824818d13730588d78226d569a (patch)
tree45c2a1227981589470ab2ac1f651b3cff0098c2b
parent7a9958e78eab56b576c97942ad21ac27833921b7 (diff)
downloadzsh-1f03591f216652824818d13730588d78226d569a.tar.gz
zsh-1f03591f216652824818d13730588d78226d569a.tar.xz
zsh-1f03591f216652824818d13730588d78226d569a.zip
22584: GNU tar should complete uncompressed archives
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Type/_tar_archive2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8f6dfd1fc..70b521324 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-08-04  Peter Stephenson  <pws@csr.com>
 
+	* 22584: Frank Terbeck: Completion/Unix/Type/_tar_archive: even
+	GNU tar should complete uncompressed .tar files.
+
 	* 22582: configure.ac: Test for functions needed for multibyte
 	mode instead of basing MULTIBYTE_SUPPORT on marginally relevant
 	preprocessor definition.  Installation docs still need changing.
diff --git a/Completion/Unix/Type/_tar_archive b/Completion/Unix/Type/_tar_archive
index eceaea875..1ac7cd0bf 100644
--- a/Completion/Unix/Type/_tar_archive
+++ b/Completion/Unix/Type/_tar_archive
@@ -19,7 +19,7 @@ if [[ "$1" = *[urtx]* ]]; then
   elif [[ "$1" = *[Ijy]* ]]; then
     _files "$expl[@]" -g '*.(tar|TAR).bz2(-.)'
   elif [[ "$_cmd_variant[$service]" == gnu ]]; then
-    _files "$expl[@]" -g '*.((tar|TAR).(gz|GZ|Z|bz2)|tgz)(-.)'
+    _files "$expl[@]" -g '*.((tar|TAR)(.gz|.GZ|.Z|.bz2|)|tgz)(-.)'
   else
     _files "$expl[@]" -g '*.(tar|TAR)(-.)'
   fi