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.

_______________________________________________
Bash-completion-devel mailing list
Bash-completion-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel

Reply via email to