[Bash-completion-devel] Get stuck
gibboris at gmail.com
Mon May 23 21:14:41 UTC 2011
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>
$ 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 ?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 328 bytes
Desc: not available
More information about the Bash-completion-devel