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:
parent
db7b2f12d8
commit
764c48f54d
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue