On 10/23/2011 10:41 AM, Ville Skyttä wrote:
> On 10/23/2011 03:08 AM, Igor Murzov wrote:
>> Found a regression. Completing shell variables names no longer works.
>>  $ echo $B<TAB>
>> gives me
>>  $ echo \$BASH
>> for "dynamic-loading" branch. Further hits of tab button give no effect.
> 
> I don't know if there's much/anything we can do about this.
> _completion_loader needs to define *some* completion for the current
> command, otherwise there will be no completion for it at all.  So it's
> the fallback definition at end of _completion_loader which breaks the
> variable completion; more specifically the -f in it.  And removing the
> -f is not really an option - that'd break filename completion which is
> what we want for commands we don't have completions for.

It just occurred to me that instead of doing "-o bashdefault -f" we can
define a default completion function of our own and use that; then we
have more control over stuff.  I'll look into it.

> But then again, completing variable names doesn't really work in the
> master branch either for commands we install completions for.

...but I think this is something we can fix in _init_completion, will
look into it as well.

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

Reply via email to