Skip to content

Commit

Permalink
_mac_addresses: Try ARP cache with "ip neigh" if arp is not available.
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Feb 1, 2013
1 parent f6df76e commit 87dede9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -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" ) )

Expand Down

0 comments on commit 87dede9

Please sign in to comment.