1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-12 01:11:27 +02:00

35972: allow for Directive=Value format in .ssh/config

This commit is contained in:
Eric Cook 2015-08-05 15:57:24 +02:00 committed by Oliver Kiddle
parent db7b2f12d8
commit 764c48f54d
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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