Allow `Host(Name)' in ssh config file to be indented

This commit is contained in:
David Paleino 2008-11-01 12:29:33 +01:00
parent 39f96af59a
commit 49437a0f51
2 changed files with 3 additions and 2 deletions

View File

@ -2637,7 +2637,7 @@ _known_hosts()
fi
# append any available aliases from config files
if [ ${#config[@]} -gt 0 ] && [ -n "$aliases" ]; then
local host_aliases=$( sed -ne 's/^[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\?['"$'\t '"']\+\([^*?]*\)$/\2/p' "${config[@]}" )
local host_aliases=$( sed -ne 's/^[ \t]*[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\?['"$'\t '"']\+\([^*?]*\)$/\2/p' "${config[@]}" )
hosts=$( compgen -W "$host_aliases" -- $ocur )
COMPREPLY=( "${COMPREPLY[@]}" $hosts )
fi

3
debian/changelog vendored
View File

@ -34,9 +34,10 @@ bash-completion (200809xx) UNRELEASED; urgency=low
* Added --schedule-only to aptitude's completion (Closes: #502664)
* Added support for `-F configfile' to _known_hosts(), ssh, scp and
sftp, thanks to Freddy Vulto (Closes: #504141)
* Allow `Host(Name)' in ssh config file to be indented
* debian/links fixed (Closes: #494292)
-- David Paleino <d.paleino@gmail.com> Sat, 01 Nov 2008 12:24:34 +0100
-- David Paleino <d.paleino@gmail.com> Sat, 01 Nov 2008 12:29:14 +0100
bash-completion (20080705) unstable; urgency=low