On Mon, May 23, 2011 at 10:57:14PM +0200, Raph wrote: [...] > I'm interested too in knowing how to deals with COMP_WORDBREAK, > (especially using properly the API)
May be seen as a thread hijack but I think this is related: The attached completion, is the only way I found to have a consistent completion on URL. But it has its drawback: $COMP_WORDBREAKS is globally modified: $ zz http://<tab> http://a http://b $ echo $COMP_WORDBREAKS "'><=;|&( ### ':' has disappeared Sad that bash needs $COMP_WORDBREAKS *after* the function has returned (and filled $COMPREPLY) rather than *into* the compgen call. Is there workaround, solutions and/or bash-bugs/bash-comp/wiki references around ? Raph
zz.sh
Description: Bourne shell script
_______________________________________________ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel