diff --git a/bash_completion b/bash_completion index 2b528af0..05f5c912 100644 --- a/bash_completion +++ b/bash_completion @@ -1265,7 +1265,7 @@ _known_hosts_real() # spaces in their name work (watch out for ~ expansion # breakage! Alioth#311595) tmpkh=( $( sed -ne 's/^[ \t]*\([Gg][Ll][Oo][Bb][Aa][Ll]\|[Uu][Ss][Ee][Rr]\)[Kk][Nn][Oo][Ww][Nn][Hh][Oo][Ss][Tt][Ss][Ff][Ii][Ll][Ee]['"$'\t '"']*\(.*\)$/\2/p' "${config[@]}" | sort -u ) ) - for i in "${tmpkh[@]//\"/}"; do + for i in "${tmpkh[@]}"; do i=$( eval echo "$i" ) # expand ~ [ -r "$i" ] && kh=( "${kh[@]}" "$i" ) done