The following commit has been merged in the master branch:
commit 74d80d17f9ffa641ee184f73da058155a58f3d4b
Author: Igor Murzov <[email protected]>
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
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits