diff --git a/bash_completion b/bash_completion index f559f9b4..869218fc 100644 --- a/bash_completion +++ b/bash_completion @@ -830,7 +830,7 @@ _mac_addresses() ) ) # ARP cache - COMPREPLY+=( $( arp -an 2>/dev/null | sed -ne \ + COMPREPLY+=( $( { arp -an || ip neigh show; } 2>/dev/null | sed -ne \ "s/.*[[:space:]]\($re\)[[:space:]].*/\1/p" -ne \ "s/.*[[:space:]]\($re\)[[:space:]]*$/\1/p" ) )