[Bash-completion-commits] [SCM] bash-completion branch, master, updated. bd35adfe218859c1a92fd3e6da94ec99337b7b38

Ville Skyttä ville.skytta at iki.fi
Mon May 10 21:54:24 UTC 2010


The following commit has been merged in the master branch:
commit 5022808775dfdbd629657eb4546531d71e67be21
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue May 11 00:35:45 2010 +0300

    Fix MAC address completion.

diff --git a/bash_completion b/bash_completion
index 3f86eaa..22ec3ab 100644
--- a/bash_completion
+++ b/bash_completion
@@ -699,6 +699,7 @@ _mac_addresses()
         "s/.*[[:space:]]\($re\)[[:space:]]*$/\1/p" ) )
 
     COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) )
+    __ltrim_colon_completions "$cur"
 }
 
 # This function completes on configured network interfaces
diff --git a/test/lib/completions/wol.exp b/test/lib/completions/wol.exp
index 4f93706..84a2d88 100644
--- a/test/lib/completions/wol.exp
+++ b/test/lib/completions/wol.exp
@@ -20,9 +20,6 @@ assert_complete "00:00:00:00:00:00 11:11:11:11:11:11 22:22:22:22:22:22 33:33:33:
 sync_after_int
 
 
-# XXX: Why does this fail?  It completes to "00:00:00:00:00:00:00"
-# XXX: (one "00:" too many, apparently added to front).
-# XXX: "wol 00" works as expected.
 assert_complete "00:00:00:00:00:00" "wol 00:"
 
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list