Closed upekkha closed 5 months ago
Thank you for the detailed report.
The rsync
completion had the same problem in 2.12, ie. it wouldn't complete the remote path on doing something like rsync -avP remote-host:/et<TAB>
... haven't tried 2.13.0 yet. Sorry for coming up late with this! :innocent:
Thanks for the additional information. The rsync
completion actually uses the same function _comp_xfunc_scp_compgen_remote_files
. I confirmed the behavior of rsync
in 2.13 and also confirmed that it is fixed by #1158.
Thanks for the quick fix. Works like a charm for scp and rsync.
Describe the bug
The completion of remote paths with
scp
is no longer working for me since 2.12.To reproduce
Expected behavior
Should complete the remote path to
/etc
(for instance)Versions (please complete the following information)
echo "$BASH_VERSION"
: 5.2.26(1)-release(IFS=.; echo "${BASH_COMPLETION_VERSINFO[*]}")
: 2.13.0Additional context
First hit by the bug on macOS with homebrew, it seems to be also reproducible in Debian 12 with the current 2.13 tarball.
Starting from a bash without config files and env vars, I source the bash completion, and try completing an scp command.
Debug trace
Showing the last lines with inline comments added.
As comparison, the last lines of 2.11, where the completion is working: