diff --git a/bash_completion b/bash_completion index a419ef6d..e204296f 100644 --- a/bash_completion +++ b/bash_completion @@ -3350,7 +3350,7 @@ complete -F _mysqladmin mysqladmin have gzip && _gzip() { - local cur prev xspec IFS=$'\t\n' + local cur prev xspec COMPREPLY=() cur=`_get_cword` @@ -3367,6 +3367,8 @@ _gzip() return 0 fi + local IFS=$'\t\n' + xspec="*.?(t)gz" if [[ "$prev" == --* ]]; then [[ "$prev" == --decompress || \ @@ -3394,7 +3396,7 @@ complete -F _gzip $filenames gzip have bzip2 && _bzip2() { - local cur prev xspec IFS=$'\t\n' + local cur prev xspec COMPREPLY=() cur=`_get_cword` @@ -3409,6 +3411,8 @@ _bzip2() return 0 fi + local IFS=$'\t\n' + xspec="*.bz2" if [[ "$prev" == --* ]]; then [[ "$prev" == --decompress || \ diff --git a/debian/changelog b/debian/changelog index b5994cfb..42ef3e7f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -64,6 +64,7 @@ bash-completion (200811xx) UNRELEASED; urgency=low * Improved filename based man page completion (Ville Skyttä). * Added minimal sqlite3 completion (Ville Skyttä). * Improved getent completion (Ville Skyttä, Guillaume Rousse). + * (Re)fix gzip and bzip2 options completion (Ville Skyttä). * Merge from Gentoo: - fix 'find' completion so that it properly completes on -?(i)whilename. Patch by Ciaran McCreesh.