From 74d80d17f9ffa641ee184f73da058155a58f3d4b Mon Sep 17 00:00:00 2001 From: Igor Murzov Date: Sat, 5 Nov 2011 19:41:34 +0300 Subject: _known_hosts_real: Add some quotes (Alioth #313158) Should fix errors if $HOME contains spaces. --- bash_completion | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bash_completion b/bash_completion index c5cd7c95..e563b05b 100644 --- a/bash_completion +++ b/bash_completion @@ -1357,7 +1357,7 @@ _known_hosts_real() else for i in /etc/ssh/ssh_config "${HOME}/.ssh/config" \ "${HOME}/.ssh2/config"; do - [ -r $i ] && config+=( "$i" ) + [ -r "$i" ] && config+=( "$i" ) done fi @@ -1385,10 +1385,10 @@ _known_hosts_real() for i in /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 \ /etc/known_hosts /etc/known_hosts2 ~/.ssh/known_hosts \ ~/.ssh/known_hosts2; do - [ -r $i ] && kh+=( $i ) + [ -r "$i" ] && kh+=( "$i" ) done for i in /etc/ssh2/knownhosts ~/.ssh2/hostkeys; do - [ -d $i ] && khd+=( $i/*pub ) + [ -d "$i" ] && khd+=( "$i"/*pub ) done fi -- cgit v1.2.1