[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-512-g9717124
Igor Murzov
e-mail at date.by
Sat Nov 5 16:48:04 UTC 2011
The following commit has been merged in the master branch:
commit 74d80d17f9ffa641ee184f73da058155a58f3d4b
Author: Igor Murzov <e-mail at date.by>
Date: Sat Nov 5 19:41:34 2011 +0300
_known_hosts_real: Add some quotes (Alioth #313158)
Should fix errors if $HOME contains spaces.
diff --git a/bash_completion b/bash_completion
index c5cd7c9..e563b05 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
--
bash-completion
More information about the Bash-completion-commits
mailing list