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

Re: qpdf or bashcompinit completion bug



On 2025-08-18 13:39:41 -0700, Bart Schaefer wrote:
> In fact re-reading that more closely, "complete" is not doing what I
> thought.  It's just setting up the key binding.

Yes, this is what I initially guessed (hence the second [Tab] needed).

> The whole thing needs to be followed by (I think) a call to _bash_complete
> ... I'm not 100% sure of that as I don't have all the prerequisites.

This seems to fix the problem. So, the _qpdf file should have

#compdef qpdf
eval $(/usr/bin/qpdf --completion-zsh)
_bash_complete

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