diff --git a/contrib/net-tools b/contrib/net-tools index a88aa2ac..580c05ec 100644 --- a/contrib/net-tools +++ b/contrib/net-tools @@ -80,7 +80,7 @@ _route() prev=${COMP_WORDS[COMP_CWORD-1]} if [ "$prev" = dev ]; then - COMPREPLY=( $( ifconfig -a | sed -ne 's|^\('$cur'[^ ]*\).*$|\1|p' )) + _available_interfaces return 0 fi