1 --- bash-completion-2.11/bash_completion.orig 2021-03-06 22:21:09.007031994 +0100
2 +++ bash-completion-2.11/bash_completion 2021-03-06 22:24:28.382618551 +0100
3 @@ -981,11 +981,10 @@ _ip_addresses()
8 - LC_ALL=C ifconfig -a || ip addr show
10 - command sed -e 's/[[:space:]]addr:/ /' -ne \
11 - "s|.*inet${n}[[:space:]]\{1,\}\([^[:space:]/]*\).*|\1|p")
13 + LC_ALL=C ip -o addr show \
15 + command awk '{ gsub(/\/.*$/, "", $4); print $4 }' | sort)
16 COMPREPLY+=($(compgen -W "$addrs" -- "${cur-}"))