Host completion does not use HOSTFILE
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash-completion (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
From bash manual:
HOSTFILE
that should be read when the shell needs to complete a hostname.
The list of possible hostname completions may be changed while
the shell is running; the next time hostname completion is
the new file to the existing list. If HOSTFILE is set, but has
no value, bash attempts to read /etc/hosts to obtain the list of
When HOSTFILE is specified and ~/.ssh/known_hosts exits the entries in $HOSTFILE is not used for completion.
The problem is '_known_hosts()' in /etc/bash_
I suggest that the result from know_hosts and $HOSTFILE should be merged.
Running Feisty, GNU bash, version 3.2.13(1)-release (i486-pc-linux-gnu)
Related branches
description: | updated |
Changed in bash-completion: | |
status: | New → Confirmed |
This bug was fixed in the package bash-completion - 20060301-3ubuntu1
---------------
bash-completion (20060301-3ubuntu1) hardy; urgency=low
* Bug fix upload (LP: #194860) sFile etc. (LP: #128866) rField
- Fixed completion of filenames with spaces
- Fixed completion of hostnames with scp
- Fixed completion of filenames with scp
- Fixed parsing of SSH config files to parse Host and HostName lines
correctly. Previously "HostName host" lines were parsed as two hosts:
"Name" and "host".
* More bugfixes:
- Fix tar completion to handle "tar rf" the same as "tar cf" (LP: #94407)
- Complete .m4v and .M4V for media players (LP: #115224)
- Complete .divx and .flv for media players (LP: #127605)
- Complete all files for "gzip ... <" (LP: #127605)
- Allow whitespace in front of GlobalKnownHost
- Complete compressed files for vim (LP: #149494)
- Always use /etc/hosts and $HOSTFILE for host completion too (LP: #184175)
* Modify Maintainer value to match the DebianMaintaine
specification.
-- Mika Fischer <email address hidden> Sat, 15 Mar 2008 19:46:17 +0100