From 723b0771ad200ef8f22e1d3fcd3ae5d392a69a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Droz?= Date: Sun, 11 Dec 2011 22:26:52 +0200 Subject: _ip_addresses: Make it locale agnostic. --- bash_completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ) ) -- cgit v1.2.1