diff --git a/CHANGES b/CHANGES index fa4e7c61..53e7906e 100644 --- a/CHANGES +++ b/CHANGES @@ -18,6 +18,8 @@ bash-completion (1.x) * Improve cvs, gkrellm, lftp, mdadm, and mysqladmin completions. * Add wtf completion, based on work by Raphaƫl Droz. * Add lftpget completion. + * Don't overwrite other host completions when completing from multiple + SSH known hosts files. -- David Paleino Sun, 11 Oct 2009 11:11:57 +0200 diff --git a/bash_completion b/bash_completion index bfc0f814..1fe7e7f2 100644 --- a/bash_completion +++ b/bash_completion @@ -1279,7 +1279,7 @@ _known_hosts_real() if [ ${#kh[@]} -gt 0 ]; then # FS needs to look for a comma separated list - COMPREPLY=( $( awk 'BEGIN {FS=","} + COMPREPLY=( "${COMPREPLY[@]}" $( awk 'BEGIN {FS=","} /^\s*[^|\#]/ {for (i=1; i<=2; ++i) { \ gsub(" .*$", "", $i); \ gsub("[\\[\\]]", "", $i); \