[Bash-completion-commits] ./current r1241: (Re)fix gzip and bzip2 options completion (Debian bug 351913 resurfaced in r934).

Ville Skyttä ville.skytta at iki.fi
Mon Jan 12 19:16:51 UTC 2009


------------------------------------------------------------
revno: 1241
committer: Ville Skyttä <ville.skytta at iki.fi>
branch nick: current
timestamp: Mon 2009-01-12 21:16:51 +0200
message:
  (Re)fix gzip and bzip2 options completion (Debian bug 351913 resurfaced in r934).
modified:
  bash_completion
  debian/changelog
-------------- next part --------------
=== modified file 'bash_completion'
--- a/bash_completion	2009-01-11 23:08:01 +0000
+++ b/bash_completion	2009-01-12 19:16:51 +0000
@@ -3350,7 +3350,7 @@
 have gzip &&
 _gzip()
 {
-	local cur prev xspec IFS=$'\t\n'
+	local cur prev xspec
 
 	COMPREPLY=()
 	cur=`_get_cword`
@@ -3367,6 +3367,8 @@
 		return 0
 	fi
 
+	local IFS=$'\t\n'
+
 	xspec="*.?(t)gz"
 	if [[ "$prev" == --* ]]; then
 		[[ "$prev" == --decompress || \
@@ -3394,7 +3396,7 @@
 have bzip2 &&
 _bzip2()
 {
-	local cur prev xspec IFS=$'\t\n'
+	local cur prev xspec
 
 	COMPREPLY=()
 	cur=`_get_cword`
@@ -3409,6 +3411,8 @@
 		return 0
 	fi
 
+	local IFS=$'\t\n'
+
 	xspec="*.bz2"
 	if [[ "$prev" == --* ]]; then
 		[[ "$prev" == --decompress || \

=== modified file 'debian/changelog'
--- a/debian/changelog	2009-01-11 23:08:01 +0000
+++ b/debian/changelog	2009-01-12 19:16:51 +0000
@@ -64,6 +64,7 @@
   * 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.



More information about the Bash-completion-commits mailing list