[Bash-completion-devel] Bug#535585: Bug#535585: ssh: only sees foo in 'Host foo bar baz' in .ssh/config

Freddy Vulto fvulto at gmail.com
Tue Jul 7 22:09:26 UTC 2009


On Fri, Jul 3, 2009 at 3:11 PM, Trent W. Buck<trentbuck at gmail.com> wrote:
> you can have multiple patterns
>
>    Host foo.example.net bar.example.net
>      Port 443
>
> AFAICT bash-completion only "sees" the first one.  I'd like it to
> complete all of them.  Bonus points will be awarded if you can work
> out an intelligent way to handle globbing patterns, e.g.
>
>    Host *.example.net *.example.com
>      Port 443

Fixed in git commit 3fe193f81a3e.  I'll leave the bonus points for now...

Within _known_hosts_real, IFS was set to just newline (\n), whereas
`compgen -W' relies on IFS being space-tab-newline ( \t\n) to expand
hostnames which are separated by whitespace.

Thanks for reporting,

Freddy Vulto
http://fvue.nl






More information about the Bash-completion-devel mailing list