Closed
Description
Describe the bug
There is a long lag (30 seconds) when completing the command argument of ssh.
To reproduce
Type 'ssh user@host ', then hit tab. The shell will freeze for 30 seconds.
Expected behavior
The completion should be fast. The 30-second lag is unacceptable.
Versions (please complete the following information)
- Operating system name/distribution and version: Ubuntu 20.04.5, WSL2
- bash version,
echo "$BASH_VERSION"
: 5.0.17(1)-release - bash-completion version,
(IFS=.; echo "${BASH_COMPLETION_VERSINFO[*]}")
: 2.10
Additional context
It is the following line that takes 30 seconds, where cur
is ""
. The output of the compgen -c -- ''
command contains 10k+ lines on my system.
bash-completion/completions/ssh
Line 356 in ac68847
Debug trace
Metadata
Metadata
Assignees
Labels
No labels