[Bash-completion-devel] Towards dynamic completion loading

Igor Murzov e-mail at date.by
Mon Nov 14 20:21:31 UTC 2011


On Wed, 26 Oct 2011 20:47:43 +0300
Ville Skyttä <ville.skytta at iki.fi> wrote:

> On 10/26/2011 08:10 PM, Ville Skyttä wrote:
> > On 10/26/2011 10:24 AM, David Paleino wrote:
> > 
> >> Broken dynamic loading with meta-commands?
> > 
> > Yes, definitely, thanks for pointing it out - I haven't considered this
> > case at all but I'm looking into it right now.
> 
> Should be fixed in commit 22f8885.

Ville, can you explain how this code should work? Especially in case of completion for full path. Loading completions in _command_offset() breaks completions for me. For example all the following cases works as expected:

 $ ls --hum<TAB>
 $ /usr/bin/ls --hum<TAB>
 $ nice ls --hum<TAB>

But following does not work:

 $ nice /usr/bin/ls --hum<TAB>

Moreover, after that even 

 $ /usr/bin/ls --hum<TAB>

which previously worked fine, stops working.


-- Igor



More information about the Bash-completion-devel mailing list