diff options
-rw-r--r-- | bash_completion | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_completion b/bash_completion index e0476743..6a4b7a19 100644 --- a/bash_completion +++ b/bash_completion @@ -1360,7 +1360,7 @@ _known_hosts_real() # dont fork any processes, because in a cluster environment, # there can be hundreds of hostkeys for i in "${khd[@]}" ; do - if [[ "$i" == *key_22_$awkcurd*.pub && -r "$i" ]]; then + if [[ "$i" == *key_22_$curd*.pub && -r "$i" ]]; then host=${i/#*key_22_/} host=${host/%.pub/} COMPREPLY=( "${COMPREPLY[@]}" $host ) |