Open LuanVSO opened 1 week ago
Thanks for reporting!
There indeed are several problem with completions/dnf5
script:
_init_completion
does not exist in zsh environmentmapfile
does not exist in zshThe issue is valid and the completion needs to be adjusted to work in both environments.
Completion with fish doesn't work with dnf5 either - is the same completion-script used for all shells?
on dnf4 there's a script for bash and a different one for zsh
Downstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=2324465
I tried very quickly to adapt _dnf to dnf5 but looks like the package_db somehow changed. We might do an intermediate sqlite file, as it was in the past (or present?) but it's not that great since dnf5 already manages a good db. I have to dig into dnf5 code to understand the support and structure.
zsh can't load dnf5 bash autocomplete causing it to use dnf4 autocomplete which causes problems specially with the remove command: