[ovs-dev] [RFC 1/2] ovs-vsctl-bashcomp: Avoid setting the COMP_WORDBREAKS.

Alex Wang alexw at nicira.com
Wed Mar 18 19:48:48 UTC 2015


On Wed, Mar 18, 2015 at 12:26 PM, Peter Amidon <peter at picnicpark.org> wrote:

> On Tue, 17 Mar 2015 12:04:33 -0700: Alex Wang <alexw at nicira.com> wrote:
>   > Then I sent another patch (which uses 'trim') in-reply-to this thread.
>   > After
>   > that I spent more time investigating and found a bug in function
>   > _ovs_vsctl_complete_key_given_table_column().  So, with the new patch
>   > + the additional changes below, we can workaround setting
>   > COMP_WORDBREAKS and still have the fancy completions.
>   > So, what do you think?
>
> This looks great, thanks!  I just have a couple of quick
> comments/questions on the _ovs_vsctl_trim_compreply function: firstly,
> is there a reason that the if statements are styled differently from
> most of the others in the file (they have the condition on a separate
> line)?  Also, would it be better to make _ovs_vsctl_trim_compreply
> use a different method of input/output (instead of directly modifying
> COMPREPLY) so that we can use it in test mode as well?
> _ovs_vsctl_trim_compreply currently uses a very different method of
> trimming from that used in test mode...
>


Yeah, I should take care of these~  Time to send formal patches for this
change~



> Thanks,
>
> Peter Amidon
>
>
>



More information about the dev mailing list