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

Freddy Vulto fvulto at gmail.com
Sun Feb 22 11:18:35 UTC 2009


The following commit has been merged in the master branch:
commit 0ebd5edd3bccb3d53fad642b524a58e907785964
Author: Freddy Vulto <fvulto at gmail.com>
Date:   Sun Feb 22 11:48:49 2009 +0100

    Make `_mii-tool()' & `_mii-diag()' POSIX-compliant
    Dash (-) is replaced with underscore (_).  This prevents errors when
    bash-completion is loaded while `set -o posix' is active:
    
        bash: `_mii-tool': not a valid identifier
        bash: `_mii-diag': not a valid identifier

diff --git a/contrib/net-tools b/contrib/net-tools
index b52e693..d926e08 100644
--- a/contrib/net-tools
+++ b/contrib/net-tools
@@ -4,7 +4,7 @@
 # bash completion for net tools
 
 have mii-tool &&
-_mii-tool()
+_mii_tool()
 {
 	local cur prev
 
@@ -55,10 +55,10 @@ _mii-tool()
 		_available_interfaces -a
 	fi
 } &&
-complete -F _mii-tool $default mii-tool
+complete -F _mii_tool $default mii-tool
 
 have mii-diag &&
-_mii-diag()
+_mii_diag()
 {
 	local cur prev
 
@@ -86,4 +86,4 @@ _mii-diag()
 		_available_interfaces -a
 	fi
 } &&
-complete -F _mii-diag $default mii-diag
+complete -F _mii_diag $default mii-diag
diff --git a/debian/changelog b/debian/changelog
index 41bd098..76eb4ac 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,12 @@
 bash-completion (1:1.x) UNRELEASED; urgency=low
 
+  [ David Paleino ]
   * Prepare for future development.
 
- -- David Paleino <d.paleino at gmail.com>  Tue, 17 Feb 2009 09:22:27 +0100
+  [ Freddy Vulto ]
+  * Make `_mii-tool()' and `_mii-diag()' POSIX-compliant
+
+ -- Freddy Vulto <fvulto at gmail.com>  Sun, 22 Feb 2009 11:32:41 +0100
 
 bash-completion (1:1.0-1) UNRELEASED; urgency=low
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list