Fix MAC address completion.

This commit is contained in:
Ville Skyttä 2010-05-11 00:35:45 +03:00
parent 310eb69245
commit 5022808775
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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:"