Skip to content

Commit

Permalink
fix(known_hosts_real): match *.pub instead of *pub
Browse files Browse the repository at this point in the history
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
  • Loading branch information
akinomyoga and scop committed Aug 6, 2023
1 parent e651348 commit 470a644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash_completion
Expand Up @@ -2440,7 +2440,7 @@ _known_hosts_real()
done
for i in /etc/ssh2/knownhosts ~/.ssh2/hostkeys; do
[[ -d $i ]] || continue
_comp_expand_glob tmpkh '"$i"/*pub'
_comp_expand_glob tmpkh '"$i"/*.pub'
((${#tmpkh[@]})) && khd+=("${tmpkh[@]}")
done
fi
Expand Down

0 comments on commit 470a644

Please sign in to comment.