[Bash-completion-devel] Get stuck
Raph
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>
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zz.sh
Type: application/x-sh
Size: 328 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20110523/a7f500d9/attachment.sh>
More information about the Bash-completion-devel
mailing list