[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.0-99-g87dede9

Ville Skyttä ville.skytta at iki.fi
Fri Feb 1 17:43:51 UTC 2013


The following commit has been merged in the master branch:
commit 87dede96c0fe8961081310284bfe58972dd801c4
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Feb 1 19:39:03 2013 +0200

    _mac_addresses: Try ARP cache with "ip neigh" if arp is not available.

diff --git a/bash_completion b/bash_completion
index f559f9b..869218f 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" ) )
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list