[Bash-completion-commits] [SCM] bash-completion branch, master, updated. f48ca28b99f96bc40f5e3bfd6662e8b00b5a3d2b

Ville Skyttä ville.skytta at iki.fi
Tue Mar 30 19:16:17 UTC 2010


The following commit has been merged in the master branch:
commit ac7ed92f52359af0a141f8f29aa956a01f74feff
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Mar 30 22:11:24 2010 +0300

    Add *.taz support for gzip/gunzip.

diff --git a/bash_completion b/bash_completion
index 188a8b4..3210ad6 100644
--- a/bash_completion
+++ b/bash_completion
@@ -73,7 +73,7 @@ complete -f -X '!*.?(t)bz?(2)' bunzip2 bzcat pbunzip2 pbzcat
 complete -f -X '!*.@(zip|ZIP|jar|JAR|exe|EXE|pk3|war|wsz|ear|zargo|xpi|sxw|ott|od[fgpst]|epub)' unzip zipinfo
 complete -f -X '*.Z' compress znew
 # zcmp, zdiff, z*grep, zless, zmore intentionally not here, see Debian: #455510
-complete -f -X '!*.@(Z|gz|tgz|Gz|dz)' gunzip zcat unpigz
+complete -f -X '!*.@(Z|gz|t[ag]z|Gz|dz)' gunzip zcat unpigz
 complete -f -X '!*.Z' uncompress
 # lzcmp, lzdiff intentionally not here, see Debian: #455510
 complete -f -X '!*.lzma' lzcat lzegrep lzfgrep lzgrep lzless lzmore unlzma
diff --git a/contrib/gzip b/contrib/gzip
index 0824385..931423d 100644
--- a/contrib/gzip
+++ b/contrib/gzip
@@ -24,7 +24,7 @@ _gzip()
 
     local IFS=$'\t\n'
 
-    xspec="*.?(t)gz"
+    xspec="*.@(gz|t[ag]z)"
     if [[ "$prev" == --* ]]; then
         [[ "$prev" == --decompress || \
             "$prev" == --list || \

-- 
bash-completion



More information about the Bash-completion-commits mailing list