I'm trying to implement a custom bash completion as described here. However, it seems that
compgen is case-sensitive. Is there a way to turn it case-insensitive in that context ?
I would modify the example from the link you mentioned into something like this:
For more info refer to the bash documentation or the bash hackers site.