Debian Bug report logs - #848975
bash-completion: Fails to auto-complete /etc/hosts hostnames after ~/.ssh/config file created

version graph

Package: bash-completion; Maintainer for bash-completion is Gabriel F. T. Gomes <gabriel@debian.org>; Source for bash-completion is src:bash-completion (PTS, buildd, popcon).

Reported by: Miel Donkers <miel.donkers@codecentric.nl>

Date: Wed, 21 Dec 2016 12:06:01 UTC

Severity: normal

Found in version bash-completion/1:2.1-4.3

Done: Miel Donkers <miel.donkers@codecentric.nl>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, miel.donkers@codecentric.nl, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#848975; Package bash-completion. (Wed, 21 Dec 2016 12:06:04 GMT) (full text, mbox, link).


Acknowledgement sent to Miel Donkers <miel.donkers@codecentric.nl>:
New Bug report received and forwarded. Copy sent to miel.donkers@codecentric.nl, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Wed, 21 Dec 2016 12:06:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Miel Donkers <miel.donkers@codecentric.nl>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash-completion: Fails to auto-complete /etc/hosts hostnames after ~/.ssh/config file created
Date: Wed, 21 Dec 2016 13:02:09 +0100
Package: bash-completion
Version: 1:2.1-4.3
Severity: normal

Dear Maintainer,

Initially, auto-completion of hosts was working as expected, auto-completing hosts defined in /etc/hosts.
After adding a ~/.ssh/config file, auto-completion of hosts defined in /etc/hosts no longer works. When moving
the config file out of the way, auto-completion works normally again. Auto-completion of hosts defined in
~/.ssh/config _does_ work, but only those defined there.

As my /etc/hosts file is quite extensive, and I only need the ssh config file for one small setting, I don't
want to include all hosts in the ssh config file. I would expect to auto-complete hostnames from /etc/hosts 
even when a ~/.ssh/config file is present.

BR,
Miel

-- System Information:
Debian Release: stretch/sid
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bash-completion depends on:
ii  bash  4.4-2
ii  dpkg  1.18.15

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#848975; Package bash-completion. (Thu, 22 Dec 2016 09:39:10 GMT) (full text, mbox, link).


Acknowledgement sent to Ville Skyttä <ville.skytta@iki.fi>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Thu, 22 Dec 2016 09:39:10 GMT) (full text, mbox, link).


Message #10 received at 848975@bugs.debian.org (full text, mbox, reply):

From: Ville Skyttä <ville.skytta@iki.fi>
To: Miel Donkers <miel.donkers@codecentric.nl>, 848975@bugs.debian.org
Subject: Re: [Bash-completion-devel] Bug#848975: bash-completion: Fails to auto-complete /etc/hosts hostnames after ~/.ssh/config file created
Date: Thu, 22 Dec 2016 11:35:03 +0200
FWIW, I (upstream) cannot reproduce using upstream bash-completion
development code directly on Fedora, haven't tried with Debian.



Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#848975; Package bash-completion. (Fri, 23 Dec 2016 21:48:02 GMT) (full text, mbox, link).


Acknowledgement sent to Miel Donkers <miel.donkers@codecentric.nl>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Fri, 23 Dec 2016 21:48:02 GMT) (full text, mbox, link).


Message #15 received at 848975@bugs.debian.org (full text, mbox, reply):

From: Miel Donkers <miel.donkers@codecentric.nl>
To: 848975@bugs.debian.org
Subject: Re: [Bash-completion-devel] Bug#848975: bash-completion: Fails to auto-complete /etc/hosts hostnames after ~/.ssh/config file created
Date: Fri, 23 Dec 2016 22:44:44 +0100
[Message part 1 (text/plain, inline)]
I've been trying to look at the source, to find what the problem is. But
with my limited knowledge I could use some assistance.

Looking at the "ssh" completion, it seems hosts are coming from the
"hostcomplete" variable / parameter. But I haven't found where this one is
coming from.
I tried disabling loading the "~/.ssh/config" file in the "bash-completion"
script, but this didn't make a difference.

Could someone perhaps explain where the "hostcomplete" is coming from, so I
might be able to debug this further?

Thx,
Miel

On 22 December 2016 at 10:35, Ville Skyttä <ville.skytta@iki.fi> wrote:

> FWIW, I (upstream) cannot reproduce using upstream bash-completion
> development code directly on Fedora, haven't tried with Debian.
>



-- 
*Miel Donkers | Agile Solution Developer*


*codecentric Nederland BVtel: +31 (0) 85.400.0011 | mobiel: +31 (0)
6.511.977.38 | miel.donkers@codecentric.nl <miel.donkers@codecentric.nl>*

*Breda office (postal address) | Reduitlaan 33 | 4814DC Breda | Netherlands*
*Amsterdam office | Johan Huizingalaan 763a | 1066VH Amsterdam |
Netherlands*
*www.codecentric.nl <http://www.codecentric.nl/> | blog.codecentric.nl
<http://blog.codecentric.nl/> | @codecentric_nl
<http://www.twitter.com/codecentric_nl>*


Volg ons op LinkedIn
<http://www.linkedin.com/company/codecentric-nederland-bv?trk=company_name>
Tweet met ons op Twitter <https://twitter.com/codecentric_nl>
Lees mee op onze blog <https://blog.codecentric.de/en/>

Like ons op Facebook <https://www.facebook.com/codecentric.nl?fref=ts>
Volg ons op Github <https://github.com/organizations/codecentric>

Meer over ons: codecentric Nederland BV is een Java Software Craftsmen
projecten en consultancy organisatie, met focus op Continuous Delivery,
Agile development en Applicatie Performance Management (AppDynamics Pro
<http://www.appdynamics.com/freetrial/?partnerid=0nxMIw>). codecentric is
kennis gedreven met ruim 350 medewerkers in Nederland, Duitsland, Bosnië en
Herzegovina en Servië.
[Message part 2 (text/html, inline)]

Reply sent to Miel Donkers <miel.donkers@codecentric.nl>:
You have taken responsibility. (Sat, 24 Dec 2016 20:12:04 GMT) (full text, mbox, link).


Notification sent to Miel Donkers <miel.donkers@codecentric.nl>:
Bug acknowledged by developer. (Sat, 24 Dec 2016 20:12:04 GMT) (full text, mbox, link).


Message #20 received at 848975-done@bugs.debian.org (full text, mbox, reply):

From: Miel Donkers <miel.donkers@codecentric.nl>
To: 848975-done@bugs.debian.org
Subject: Re: [Bash-completion-devel] Bug#848975: bash-completion: Fails to auto-complete /etc/hosts hostnames after ~/.ssh/config file created
Date: Sat, 24 Dec 2016 21:08:55 +0100
[Message part 1 (text/plain, inline)]
Issue can be closed - was related to user-specific setup

After debugging I found that certain scripts were loaded that would
override the ssh completion when a config file was present. So not related
to the bash-completion package itself.
Thanks for earlier feedback.

Regards,
Miel

On 23 December 2016 at 22:44, Miel Donkers <miel.donkers@codecentric.nl>
wrote:

> I've been trying to look at the source, to find what the problem is. But
> with my limited knowledge I could use some assistance.
>
> Looking at the "ssh" completion, it seems hosts are coming from the
> "hostcomplete" variable / parameter. But I haven't found where this one is
> coming from.
> I tried disabling loading the "~/.ssh/config" file in the
> "bash-completion" script, but this didn't make a difference.
>
> Could someone perhaps explain where the "hostcomplete" is coming from, so
> I might be able to debug this further?
>
> Thx,
> Miel
>
> On 22 December 2016 at 10:35, Ville Skyttä <ville.skytta@iki.fi> wrote:
>
>> FWIW, I (upstream) cannot reproduce using upstream bash-completion
>> development code directly on Fedora, haven't tried with Debian.
>>
>
>
>
> --
> *Miel Donkers | Agile Solution Developer*
>
>
> *codecentric Nederland BVtel: +31 (0) 85.400.0011 <+31%2085%20400%200011>
> | mobiel: +31 (0) 6.511.977.38 | miel.donkers@codecentric.nl
> <miel.donkers@codecentric.nl>*
>
> *Breda office (postal address) | Reduitlaan 33 | 4814DC Breda |
> Netherlands*
> *Amsterdam office | Johan Huizingalaan 763a | 1066VH Amsterdam |
> Netherlands*
> *www.codecentric.nl <http://www.codecentric.nl/> | blog.codecentric.nl
> <http://blog.codecentric.nl/> | @codecentric_nl
> <http://www.twitter.com/codecentric_nl>*
>
>
> Volg ons op LinkedIn
> <http://www.linkedin.com/company/codecentric-nederland-bv?trk=company_name>
> Tweet met ons op Twitter <https://twitter.com/codecentric_nl>
> Lees mee op onze blog <https://blog.codecentric.de/en/>
>
> Like ons op Facebook <https://www.facebook.com/codecentric.nl?fref=ts>
> Volg ons op Github <https://github.com/organizations/codecentric>
>
> Meer over ons: codecentric Nederland BV is een Java Software Craftsmen
> projecten en consultancy organisatie, met focus op Continuous Delivery,
> Agile development en Applicatie Performance Management (AppDynamics Pro
> <http://www.appdynamics.com/freetrial/?partnerid=0nxMIw>). codecentric is
> kennis gedreven met ruim 350 medewerkers in Nederland, Duitsland, Bosnië en
> Herzegovina en Servië.
>



-- 
*Miel Donkers | Agile Solution Developer*


*codecentric Nederland BVtel: +31 (0) 85.400.0011 | mobiel: +31 (0)
6.511.977.38 | miel.donkers@codecentric.nl <miel.donkers@codecentric.nl>*

*Breda office (postal address) | Reduitlaan 33 | 4814DC Breda | Netherlands*
*Amsterdam office | Johan Huizingalaan 763a | 1066VH Amsterdam |
Netherlands*
*www.codecentric.nl <http://www.codecentric.nl/> | blog.codecentric.nl
<http://blog.codecentric.nl/> | @codecentric_nl
<http://www.twitter.com/codecentric_nl>*


Volg ons op LinkedIn
<http://www.linkedin.com/company/codecentric-nederland-bv?trk=company_name>
Tweet met ons op Twitter <https://twitter.com/codecentric_nl>
Lees mee op onze blog <https://blog.codecentric.de/en/>

Like ons op Facebook <https://www.facebook.com/codecentric.nl?fref=ts>
Volg ons op Github <https://github.com/organizations/codecentric>

Meer over ons: codecentric Nederland BV is een Java Software Craftsmen
projecten en consultancy organisatie, met focus op Continuous Delivery,
Agile development en Applicatie Performance Management (AppDynamics Pro
<http://www.appdynamics.com/freetrial/?partnerid=0nxMIw>). codecentric is
kennis gedreven met ruim 350 medewerkers in Nederland, Duitsland, Bosnië en
Herzegovina en Servië.
[Message part 2 (text/html, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 22 Jan 2017 07:26:29 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 09:27:01 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.