Bug#1122387: apt-file: Bash suggests filenames for the first argument

Samuel Plavec <[email protected]> Fri, 12 Dec 2025 16:08:30 +0100
Newsgroups gmane.linux.debian.apt.devel
Message-ID <CAG9yr8J3+41sqQxMZUztNnGAv5GJT8d1M3LXpToJo9e8B5LwUA__37306.0957690299$1765552284$gmane$org@mail.gmail.com>
This issue disappears when I change the last line of
/usr/share/bash-completion/completions/apt-file from:
> complete -f -F _apt_file apt-file
to:
> complete -F _apt_file apt-file

After this fix, completion works for the usual apt-file actions.
However, it seems that completion hasn't been implemented for several
features of apt-file (such as list-indices or --filter-suites). Maybe
the purpose of the -f flag is to provide fallback completion for them?

--
Samuel Plavec