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

Re: qpdf or bashcompinit completion bug



On 2025-08-18 23:35:17 -0400, Eric Cook wrote:
> On 8/18/25 11:06 PM, Vincent Lefevre wrote:
> > On 2025-08-19 04:53:20 +0200, Vincent Lefevre wrote:
> > > If the functions cannot be changed, I suppose that completions based
> > > on bash completers (I only know the qpdf one) should not be enabled
> > > by default.
> > 
> > Or couldn't the function be renamed (e.g. compgen → _bash_compgen)
> > and when a completion is used, an alias compgen would be locally
> > defined to _bash_compgen?
> 
> aliases, like functions all share one namespace. so your concern
> would just move the `problem' to stomping on a user alias.

An alias or a function. But I mean that it would be internal to
the completion system. The old alias or function would have to be
restored.

> If you as a user decides to use bashcompinit _and_ decide to create
> functions named compgen or complete, problems will most likely
> occur, yes. once the problem occurs you can decide if keeping those
> function names or using bashcompinit is more important to you and
> act accordingly.

As a user, I did not choose to use bashcompinit. It is the zsh
completion system that uses it, via a system-level completion.

-- 
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