Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
qpdf or bashcompinit completion bug
- X-seq: zsh-workers 53830
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: qpdf or bashcompinit completion bug
- Date: Mon, 18 Aug 2025 21:27:02 +0200
- Archived-at: <https://zsh.org/workers/53830>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
I've just reported
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1111509
about an issue with qpdf zsh completion: it does not work on
the first [Tab]. Then there are no issues for the shell session.
I'm wondering whether this is a bug in the qpdf completion or
in bashcompinit, on which it is based.
/usr/share/zsh/vendor-completions/_qpdf just contains:
#compdef qpdf
eval $(/usr/bin/qpdf --completion-zsh)
and "/usr/bin/qpdf --completion-zsh" just outputs:
autoload -U +X bashcompinit && bashcompinit && complete -o bashdefault -o default -C "/usr/bin/qpdf" qpdf
The zshcompsys(1) man page says
The function bashcompinit provides compatibility with bash's
programmable completion system. When run it will define the
functions, compgen and complete which correspond to the bash
builtins with the same names. It will then be possible to
use completion specifications and functions written for
bash.
It seems that the first [Tab] sets up the completion for qpdf, but
does not attempt to complete, while it should do both.
I'm using zsh 5.9 under Debian/unstable.
--
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