Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: qpdf or bashcompinit completion bug



On 2025-08-18 21:13:56 -0400, Eric Cook wrote:
> On 8/18/25 8:54 PM, Vincent Lefevre wrote:
> 
> > Moreover, independently of the above issue, bashcompinit defines
> > 2 additional functions: compgen (mentioned above) and complete.
> > Their names are likely to clash with user-defined functions.
> > Shouldn't their names start with an underscore, and even some
> > prefix like "_bash_"?
> 
> They exist for completers designed for bash, renaming them would
> break the most of them.
> 
> grep -rF '$(compgen' /path/to/bash-completion/completions

But are they used by zsh?

I cannot see any call to _bash_complete under /usr/share/zsh
on my machine currently (one should be added to _qpdf).

For qpdf, the "qpdf --completion-zsh" output would just need
to be updated.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)




Messages sorted by: Reverse Date, Date, Thread, Author