Scp autocompletion (for remote path) stopped working

,

I’ve noticed that autocomplete (using tab), for remote paths, no longer works for the scp command.
It’s possible the loss of function happened when I upgraded to Fedora 41 but perhaps that is just correlation rather than causation.

Does anyone know how to restore path autocomplete to scp?

Edit …
If I get a shell with bash --norc --noprofile, then the autocomplete for remote paths works with scp (but autocomplete with other commands, naturally, does not (say for git options)).
If I then run . /usr/share/bash-completion/bash_completion, I get back my autocompletion for commands like git but loose it for scp.

I have it too, just installed a fresh Fedora 41 on my new PC and trying to debug this issue. I’m glad to see that someone already reported it.

That sounds like 2319569 – bash completion for scp is broken after upgrading from Fedora 40 to Fedora 41

2 Likes

If that was the fix, why hasn’t that made it into the F41 updates after 10 months?

FEDORA-2025-f4840865e1 — bugfix update for bash-completion — Fedora Updates System

Good catch… I downloaded bash-completion-2.16-1.fc42.noarch.rpm and it installed on F41 without complaint and does solve the issue!

1 Like