[Bash-completion-devel] Bug#704832: [patch] (was: Bug#704832: locale aware ifconfig breaks completion)

Thilo Six T.Six at gmx.de
Sat Apr 6 19:19:28 UTC 2013


Hello Ville


Excerpt from Ville Skyttä:

> On 2013-04-06 17:16, Thilo Six wrote:
>> _mac_addresses() suffer from not taking care of locale awareness of ifconfig
> 
> Fixed upstream:
> http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=a9db458
> 
>> As a measure of precaution _available_interfaces() should probably be
>> fixed in the same way but it does currently not break there.
> 
> It doesn't touch any locale specific strings in the output so I don't
> think there's anything to fix in it.

Thank you!

Did you notice my comment about the sed statement? Looking at the git repo i see
the sed statement in the follwoing line is still unmodified. When i try it here
i get nothing.

these two from git echo nothing back:
$ LC_ALL=C ifconfig -a | sed -ne
"s/.*[[:space:]]HWaddr[[:space:]]\{1,\}\($re\)[[:space:]]*$/\1/p"
$ LC_ALL=C ifconfig -a | sed -ne
"s/.*[[:space:]]HWaddr[[:space:]]\{1,\}\($re\)[[:space:]].*/\1/p"

this one echos my MACs (this is on GNU/Linux):
$ LC_ALL=C ifconfig -a | sed -ne "s/.*[[:space:]]HWaddr[[:space:]]\{1,\}\($re\)//p"
-- 
Regards,
Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6  7C18 89A4 A2A0 C70B 1A8F



More information about the Bash-completion-devel mailing list