[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:05 UTC 2011


The following commit has been merged in the master branch:
commit bc2d3c9a34a276a53baa6e836b0e171f56a1d97a
Author: Igor Murzov <e-mail at date.by>
Date:   Sat Nov 5 19:51:07 2011 +0300

    _known_hosts_real: Replace "${HOME}" with "~" to make code more compact.

diff --git a/bash_completion b/bash_completion
index e563b05..1ef7030 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1355,8 +1355,7 @@ _known_hosts_real()
         [ -r "$configfile" ] &&
         config+=( "$configfile" )
     else
-        for i in /etc/ssh/ssh_config "${HOME}/.ssh/config" \
-            "${HOME}/.ssh2/config"; do
+        for i in /etc/ssh/ssh_config ~/.ssh/config ~/.ssh2/config; do
             [ -r "$i" ] && config+=( "$i" )
         done
     fi

-- 
bash-completion



More information about the Bash-completion-commits mailing list