[Bash-completion-commits] [SCM] bash-completion branch, frozen/1.0, updated. 7c79b113c6735991be91608c4dc3020402e2de66

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


The following commit has been merged in the frozen/1.0 branch:
commit 7c79b113c6735991be91608c4dc3020402e2de66
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 ebff512..bcd6762 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -140,8 +140,9 @@ bash-completion (1:1.0-1) UNRELEASED; urgency=low
   * Removed duplicate completion option `-borderwidth' for `display'
   * Prevent completion dir from being sourced twice if
     BASH_COMPLETION_DIR and BASH_COMPLETION_COMPAT_DIR are equal (Alioth#311433) 
+  * Make `_mii-tool()' and `_mii-diag()' POSIX-compliant
 
- -- David Paleino <d.paleino at gmail.com>  Sat, 21 Feb 2009 23:13:13 +0100
+ -- Freddy Vulto <fvulto at gmail.com>  Sun, 22 Feb 2009 11:32:41 +0100
 
 bash-completion (20080705) unstable; urgency=low
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list