Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: qpdf or bashcompinit completion bug
- X-seq: zsh-workers 53839
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: qpdf or bashcompinit completion bug
- Date: Mon, 18 Aug 2025 23:17:25 +0200
- Archived-at: <https://zsh.org/workers/53839>
- In-reply-to: <CAH+w=7Y6N9CcCet7f7X7uf0cisDQ3ho57RAELdSVoRP0EuBgqA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- References: <20250818192702.GA1024393@qaa.vinc17.org> <0ff33527b4ff63d86731f216496bb0f1@chazelas.org> <20250818200001.GC1024393@qaa.vinc17.org> <CAH+w=7b0C_Za_oVATMEjqjr_iicd_1hFUtOH0imgOHXOt9vL3Q@mail.gmail.com> <CAH+w=7Y6N9CcCet7f7X7uf0cisDQ3ho57RAELdSVoRP0EuBgqA@mail.gmail.com>
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