[Bash-completion-devel] [PATCH] Bug#559953: COMP_WORDS: bad array subscript
ville.skytta at iki.fi
Mon May 2 10:55:49 UTC 2011
On 05/01/2011 09:12 PM, Igor Murzov wrote:
>> For example, write "ls" and then go to the start of line, what do you
>> think $cur and $prev should be set to when completing at that point? I
>> think both of them should be empty, but then again I also think that in
>> that case the "ls" completion should not be invoked at all which may be
>> a bash bug.
> Let's fail _init_completion() if we detect that $cword equals to zero. This is
> sane I suppose.
Good idea, will do.
More information about the Bash-completion-devel