[Bash-completion-devel] Colon completion woes

Ville Skyttä ville.skytta at iki.fi
Sun May 9 22:06:17 UTC 2010


Hello,

I just added completion for wol(1).  It deals with MAC addresses and I'm 
having a problem with it apparently "forgetting" parts of already typed stuff 
and appending matching completions completely to my partial string, instead of 
just the missing trailing part.  See the failing test case in wol.exp.  Ideas?

$ wol <TAB>
00:15:XX:XX:XX:XX  00:23:XX:XX:XX:XX  96:B1:XX:XX:XX:XX
$ wol 

So far so good.  But:

$ wol 00:<TAB>
00:15:XX:XX:XX:XX  00:23:XX:XX:XX:XX
$ wol 00:00:

Huh?  Where did the "00:00:" come from?  I just typed "00:" and there are no 
completions matching "00:00:".  Also:

$ wol 00:1<TAB>
# completes directly to "00:00:15:XX:XX:XX:XX"

Again, one "00:" too many at the beginning.  Ideas?





More information about the Bash-completion-devel mailing list