I haven't found any documentation, but based on my experiments, it seems that FIGNORE
does not affect the compgen()
/ _filedir()
(which is just a wrapper around the former) processing itself. It only affects completions when it is set in the shell from which the completion is triggered (but then globally, which is not what you want).
I guess you cannot use FIGNORE
in this clever way, and have to explicitly implement a filter of the COMPREPLY
array yourself.