Skip to content

fix(_known_hosts_real): remove empty hostnames #737

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 12, 2022

Conversation

akinomyoga
Copy link
Collaborator

Fix the problem mentioned in #720 (comment). This is a regression caused by 08dd2cdb - bash_completion:1886. When there is an entry Host * in ssh_config, an empty hostname is generated. We exclude the empty completions by -X.

@akinomyoga akinomyoga changed the title Fix empty hostname fix(_known_hosts_real): remove empty hostnames Apr 12, 2022
Fix the problem mentioned in Ref [1].  This is a regression caused by
commit 08dd2cd [2].  When there is an entry "Host *" in ssh_config,
an empty hostname is generated. We exclude the empty completions using
the compgen option "-X".

[1] scop#720 (comment)
[2] \
scop@08dd2cd#diff-a4757074ff650000804fd3eaabe9b0a9e02e33040ca5b8afd4c0275fc5f3e136R1886
@scop scop merged commit 0486a11 into scop:master Apr 12, 2022
@scop
Copy link
Owner

scop commented Apr 12, 2022

Nice catch!

@github-actions github-actions bot mentioned this pull request Apr 12, 2022
@akinomyoga akinomyoga deleted the fix-empty-hostname branch April 12, 2022 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants