Right now I'm trying to perfect this completion script for rake (https://git.io/JDaSA), but the problem is it has to rely on modifying the COMP_WORDBREAKS variable so it doesn't contain '=' and ':'. This conflicts with git's completion script at least which prefers `:` to be assigned, and I'm not sure how it affects other scripts that may want `=` not removed.
Either way the best solution in my opinion is to have Bash add a new feature that allows each completion have their own COMP_WORDBREAKS, probably through a new complete option, or a global associative array variable that can contain the name of the completion as the key and the value as the word break characters. -- konsolebox