[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.1-4-ga9db458
Ville Skyttä
ville.skytta at iki.fi
Sat Apr 6 18:12:53 UTC 2013
The following commit has been merged in the master branch:
commit a9db458339fb518178b1b6cc234930bb869e95ea
Author: Thilo Six <T.Six at gmx.de>
Date: Sat Apr 6 21:11:54 2013 +0300
_mac_addresses: Use explicit C locale for ifconfig (Debian: #704832).
diff --git a/bash_completion b/bash_completion
index 6d3ba76..e7c393e 100644
--- a/bash_completion
+++ b/bash_completion
@@ -825,7 +825,8 @@ _mac_addresses()
# - ifconfig on Linux: HWaddr or ether
# - ifconfig on FreeBSD: ether
# - ip link: link/ether
- COMPREPLY+=( $( { ifconfig -a || ip link show; } 2>/dev/null | sed -ne \
+ COMPREPLY+=( $( \
+ { LC_ALL=C ifconfig -a || ip link show; } 2>/dev/null | sed -ne \
"s/.*[[:space:]]HWaddr[[:space:]]\{1,\}\($re\)[[:space:]].*/\1/p" -ne \
"s/.*[[:space:]]HWaddr[[:space:]]\{1,\}\($re\)[[:space:]]*$/\1/p" -ne \
"s|.*[[:space:]]\(link/\)\{0,1\}ether[[:space:]]\{1,\}\($re\)[[:space:]].*|\2|p" -ne \
--
bash-completion
More information about the Bash-completion-commits
mailing list