Re: [BUG] Autocompletion fails with "bash: words: bad array subscript"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 10, 2011 at 04:31:01PM -0400, Jeff King wrote:

> It looks like we set $cword too low at some point, as the problematic
> code seems to be:
> 
>   + upargs+=(-v $vprev "${words[cword - 1]}")
>   bash: words: bad array subscript
> 
> but I haven't figured out yet where that happens.

Hrm. That code doesn't appear in our completion at all. We provide our
own _get_comp_words_by_ref, but if it is already defined, we use
whatever is there. So on my box, the problematic code comes from
/etc/bash_completion. And I think it is a bug there, as this is one of
the first things called (so git's completion hasn't had a change to
introduce any bugs yet :) ).

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]