about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Cook <llua@gmx.com>2015-08-05 15:57:24 +0200
committerOliver Kiddle <opk@zsh.org>2015-08-05 15:57:24 +0200
commit764c48f54dfe0a04f18330b0b12f16a894ff34cb (patch)
tree7d670d0af4ad4beff62515ec1aca849d14fc0b9a
parentdb7b2f12d84426a309f4f9d21fc8f66cd2576e25 (diff)
downloadzsh-764c48f54dfe0a04f18330b0b12f16a894ff34cb.tar.gz
zsh-764c48f54dfe0a04f18330b0b12f16a894ff34cb.tar.xz
zsh-764c48f54dfe0a04f18330b0b12f16a894ff34cb.zip
35972: allow for Directive=Value format in .ssh/config
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_ssh4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index acfbc7b3f..4bac3a807 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-08-05  Oliver Kiddle <opk@zsh.org>
 
+	* Eric Cook: 35972: Completion/Unix/Command/_ssh: allow for
+	Directive=Value format in .ssh/config
+
 	* Christian Hesse: 35986: Completion/Unix/Command/_ssh:
 	add ssh option UpdateHostKeys
 
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index b23ce3b4e..8649521fa 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -574,8 +574,8 @@ _ssh_hosts () {
     config="$HOME/.ssh/config"
   fi
   if [[ -r $config ]]; then
-    local IFS=$'\t ' key hosts host
-    while read key hosts; do
+    local key hosts host
+    while IFS=$'=\t ' read -r key hosts; do
       if [[ "$key" == (#i)host ]]; then
          for host in ${(z)hosts}; do
             case $host in