On Thu, Jun 23, 2011 at 10:49:20AM -0400, Chet Ramey wrote: > On 5/30/11 2:05 PM, Raphaël Droz wrote: > > === Rationale: > > Let's say you want to complete http URL (which contain ':'). > > > > The completion probably contains this kind of statement: > > > > _comp() { > > COMPREPLY=( $(compgen -W "http://foo http://bar" -- "$cur") ) > > } > > > > After the completion function is evaluated, readline will consider > > the value of $COMP_WORDBREAKS to split the word to complete... > > The question that comes to mind is whether or not this complication is > worth it. This seems like a pretty heavyweight solution to an > occasional problem with `:'.
would you have any advise to give for a lighter solution ? Isn't rl_completion_word_break_hook the way to go ?