summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Droz <raphael.droz+floss@gmail.com>2011-12-11 22:26:52 +0200
committerVille Skyttä <ville.skytta@iki.fi>2011-12-11 22:26:52 +0200
commit723b0771ad200ef8f22e1d3fcd3ae5d392a69a27 (patch)
treeb85b041eedd1107e497546c2b330ac1f67cc4cf9
parent4fa2616e70a4c0dda96aa995d96211261731a992 (diff)
downloadbash-completion-723b0771ad200ef8f22e1d3fcd3ae5d392a69a27.tar.gz
_ip_addresses: Make it locale agnostic.
-rw-r--r--bash_completion2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_completion b/bash_completion
index 835146f2..0eecb158 100644
--- a/bash_completion
+++ b/bash_completion
@@ -862,7 +862,7 @@ _configured_interfaces()
_ip_addresses()
{
COMPREPLY+=( $( compgen -W \
- "$( PATH="$PATH:/sbin" ifconfig -a |
+ "$( PATH="$PATH:/sbin" LC_ALL=C ifconfig -a |
sed -ne 's/.*addr:\([^[:space:]]*\).*/\1/p' \
-ne 's/.*inet[[:space:]]\{1,\}\([^[:space:]]*\).*/\1/p' )" \
-- "$cur" ) )