summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreddy Vulto <fvulto@gmail.com>2010-01-06 09:31:31 +0100
committerFreddy Vulto <fvulto@gmail.com>2010-01-06 09:31:31 +0100
commitd5d7592169945a965870254682c40ee2294dbd65 (patch)
tree53d668400aa6ca9ac407fb5839d0495e2988d148
parentdb739401f78f5479ece0eb7a7a0ef725d89d2e2d (diff)
downloadbash-completion-d5d7592169945a965870254682c40ee2294dbd65.tar.gz
Fix _known_hosts_real: awkcurd > curd
-rw-r--r--bash_completion2
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 )