Article View: linux.debian.bugs.dist
Article #1339Bug#1151261: Broken fdfind completions
From: Andrej Zhilenkov
Date: Mon, 19 Oct 2026 12:20
Date: Mon, 19 Oct 2026 12:20
44 lines
3877 bytes
3877 bytes
Sorry, iCloud messed up my plain text part in the email, and the
entire message got assigned as the package name.. Fixed now.
Here's the same report again, just readable this time.
----
Previously reported at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=936036
- was closed and archived, it had some blockers preventing issue from
being resolved, they're probably gone by now, so reporting again.
`fd-find` package bundles completions - e.g. `/usr/share/fish/completions/fd.fish`.
`fdfind` upstream is typically installed as `fd`, but since this
name collides with other Debian package (https://packages.debian.org/sid/shells/fdclone),
in apt it's installed as `fdfind`. So when someone is trying to
do `fdfind <tab>`, the completions don't work out-of-the-box,
because only `fd.fish` is provided, not `fdfind.fish`. To make
bundled completions work, package is requiring user to symlink
`fdfind` as `fd` or add `/usr/lib/cargo/bin` to the PATH to make
`/usr/lib/cargo/bin/fd` accessible.
To fix this there are two possible solutions: - bundle `fdfind.fish`
instead of `fd.fish` - that resolves the issue, but
it breaks it for users already relying on `fd.fish`. - but it's
sort of a proper solution for this, because having `fd.fish`
means we suggest wrong completions for `fd` coming from `fdclone`
- `fdfind --gen-completions` generates completions for `fdfind`, not
`fd`, so this option is simple in implementation
- keep `fd.fish`, bundle additional `fdfind.fish` (it can either
redirect
completions to `fd.fish` or can just duplicate the same instruction
but for `fdfind` name) - note that symlink (`fdfind.fish` ->
`fd.fish`) won't work here,
because `fd.fish` hardcodes that it works only for `fd` command
- e.g. `complete -c fd -l ignore-vcs -d 'Overrides --no-ignore-vcs'`
- keeps users relying on `fd.fish` happy
Since all existing `fdfind` installations are already affected by
this, I'll try to upstream adding a simple `fdfind.fish` (e.g. just
`fdfind --gen-completions fish | source`) to `fish-shell` itself,
so that will resolve it for older packages, but still this needs
to be resolved in Debian package too (also because bash and zsh
completions are affected too).
Technical Details
Message-ID:
<NPUvn-6x7h-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NPUvn-6x7h-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Andrej Zhilenkov <andrej730@icloud.com> Newsgroups: linux.debian.bugs.dist Subject: Bug#1151261: Broken fdfind completions Date: Mon, 19 Oct 2026 14:20:01 +0200 Message-ID: <NPUvn-6x7h-1@gated-at.bofh.it> References: <NPUvn-6x7h-3@gated-at.bofh.it> X-Original-To: 1151261@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Oct 19 12:11:06 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.398 Reply-To: Andrej Zhilenkov <andrej730@icloud.com>, 1151261@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-rust-maintainers@alioth-lists.debian.net X-Debian-Pr-Message: followup 1151261 X-Debian-Pr-Package: fd-find X-Debian-Pr-Source: rust-fd-find MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997514 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 44 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 19 Oct 2026 17:09:55 +0500 X-Original-Message-ID: <atYIkxiMPi7IkKwy@andrej-Nitro-AN517-55> X-Original-References: <9f047668-7b79-4985-afd3-d8348b56e666@me.com>