diff options
author | Freddy Vulto <fvulto@gmail.com> | 2009-02-22 11:48:49 +0100 |
---|---|---|
committer | Freddy Vulto <fvulto@gmail.com> | 2009-02-22 12:43:14 +0100 |
commit | 7c79b113c6735991be91608c4dc3020402e2de66 (patch) | |
tree | fdc65ae5782a1046845ead9c8b72d6f9570b6c55 | |
parent | 9632699e3dd541e70defc7db9f343c4faa9d8d3a (diff) | |
download | bash-completion-7c79b113c6735991be91608c4dc3020402e2de66.tar.gz |
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
-rw-r--r-- | contrib/net-tools | 8 | ||||
-rw-r--r-- | debian/changelog | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/contrib/net-tools b/contrib/net-tools index b52e693b..d926e084 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 ebff512b..bcd6762d 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@gmail.com> Sat, 21 Feb 2009 23:13:13 +0100 + -- Freddy Vulto <fvulto@gmail.com> Sun, 22 Feb 2009 11:32:41 +0100 bash-completion (20080705) unstable; urgency=low |