diff options
author | Alex Wang <alexw@nicira.com> | 2015-03-13 14:47:25 -0700 |
---|---|---|
committer | Alex Wang <alexw@nicira.com> | 2015-03-20 16:42:42 -0700 |
commit | bb5dbe78592b3f39f0e7e6361c8796a5023363e5 (patch) | |
tree | e8baaafc0b8217d05def9739f65685b50d4609f5 /xenserver | |
parent | 777cb78767fd0ca821dad79691ee3200de66f06e (diff) | |
download | openvswitch-bb5dbe78592b3f39f0e7e6361c8796a5023363e5.tar.gz |
ovs-vsctl-bashcomp: Avoid setting the COMP_WORDBREAKS.
Modifying $COMP_WORDBREAKS in completion script is not the recommended
as it is a global variable and the modification could affect the behavior
of other completion scripts. As a workaround, this commit uses the
_get_comp_words_by_ref which allows user to exclude characters out of
$COMP_WORDBREAKS and reassemble input command line. However, as a side
effect, the bash completion module cannot handle characters defined in
$COMP_WORDBREAKS (e.g. ':' and '=') correctly in the resulting completions.
Thusly, we need to trim the colon-word and equal-word prefixes from reply.
Signed-off-by: Alex Wang <alexw@nicira.com>
Diffstat (limited to 'xenserver')
0 files changed, 0 insertions, 0 deletions