Fix MAC address completion.
This commit is contained in:
parent
310eb69245
commit
5022808775
@ -699,6 +699,7 @@ _mac_addresses()
|
|||||||
"s/.*[[:space:]]\($re\)[[:space:]]*$/\1/p" ) )
|
"s/.*[[:space:]]\($re\)[[:space:]]*$/\1/p" ) )
|
||||||
|
|
||||||
COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) )
|
||||||
|
__ltrim_colon_completions "$cur"
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function completes on configured network interfaces
|
# This function completes on configured network interfaces
|
||||||
|
@ -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
|
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:"
|
assert_complete "00:00:00:00:00:00" "wol 00:"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user