[Top][All Lists]

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

Re: [BUG][bash][auto completion] if COMPREPLY contents ":" auto completi

From: Paul Jarc
Subject: Re: [BUG][bash][auto completion] if COMPREPLY contents ":" auto completion doesn't work properly
Date: Tue, 26 Sep 2006 15:56:14 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

Chet Ramey <address@hidden> wrote:
> Vasily Tarasov wrote:
>> I suppose I've found a bug;
> I need to make this part of the FAQ.  The `:' is special to readline:  it
> splits words for the word completion code.

That explains some of what's going on in this case, but not all.  For
the first tab, shouldn't the text filled in by completion be "qwe\:o"
instead of "qwe:o", since it includes a COMP_WORDBREAKS character?
That's how filename completion behaves, so I'd expect the same
behavior here.  Is the completion function responsible for adding the
backslash, or should bash do it?

Also, after two tabs, we have "qwe:qwe:o", but further tabs don't add
any more "qwe:"'s for some reason I don't understand.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]