Debian Bug report logs - #400380
bash: [COMPLETION] hostname completion ignores HOSTFILE variable

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: Attila Rajmund Nohl <attila.rajmund.nohl@ericsson.com>

Date: Sat, 25 Nov 2006 20:33:06 UTC

Severity: normal

Fixed in version bash-completion/20060301-4

Done: Luk Claes <luk@debian.org>

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, Matthias Klose <doko@debian.org>:
Bug#400380; Package bash. (full text, mbox, link).


Acknowledgement sent to Attila Rajmund Nohl <attila.rajmund.nohl@ericsson.com>:
New Bug report received and forwarded. Copy sent to Matthias Klose <doko@debian.org>. (full text, mbox, link).


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

From: Attila Rajmund Nohl <attila.rajmund.nohl@ericsson.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash: [COMPLETION] hostname completion ignores HOSTFILE variable
Date: Sat, 25 Nov 2006 21:21:52 +0100
Package: bash
Version: 3.1-5
Severity: normal


$ cat $HOSTFILE
192.25.206.10   www.debian.org
$ ssh nar@ww

At that point I press TAB, but nothing happens, bash does not complete
the hostname. However, if I delete the ww characters, bash offers some
216 hostnames (I don't know where does it get all these hostnames). I'm
not sure if it matters, but the /etc/nsswitch.conf file contains this
line:
hosts:  files nis dns

The 'getent hosts' commands returns more than 600 hostnames, so bash
definitely does not offer all these hostnames, but it offers hostnames
like:
 |1|tyRLEWAhJqfLu2hiN3Nfqf5PS5U=|410N02nzJsM0sIQfOfPKp8PqHdw=

which looks strange.

By the way, hostname completition works on sarge, but that's a lot
earlier bash version.

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.20
Locale: LANG=hu_HU, LC_CTYPE=hu_HU (charmap=ISO-8859-2)

Versions of packages bash depends on:
ii  base-files                   4           Debian base system miscellaneous f
ii  debianutils                  2.17        Miscellaneous utilities specific t
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries
ii  libncurses5                  5.5-5       Shared libraries for terminal hand

bash recommends no packages.

-- no debconf information



Message sent on to Attila Rajmund Nohl <attila.rajmund.nohl@ericsson.com>:
Bug#400380. (full text, mbox, link).


Message #8 received at 400380-submitter@bugs.debian.org (full text, mbox, reply):

From: Justin Pryzby <pryzbyj@justinpryzby.com>
To: 400380-submitter@bugs.debian.org
Subject: bash hostname completion
Date: Tue, 13 Mar 2007 20:31:28 -0400
The strange hostnames you see are an unfortunate result of new openssh
"hashing" of hostnames in the known_hosts file, with the intent of
preventing harvesting of other accounts from compromized machines.

Justin



Bug reassigned from package `bash' to `bash-completion'. Request was from Luk Claes <luk@debian.org> to control@bugs.debian.org. (Sun, 02 Mar 2008 15:25:48 GMT) (full text, mbox, link).


Reply sent to Luk Claes <luk@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Attila Rajmund Nohl <attila.rajmund.nohl@ericsson.com>:
Bug acknowledged by developer. (full text, mbox, link).


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

From: Luk Claes <luk@debian.org>
To: 400380-close@bugs.debian.org
Subject: Bug#400380: fixed in bash-completion 20060301-4
Date: Sat, 22 Mar 2008 23:32:03 +0000
Source: bash-completion
Source-Version: 20060301-4

We believe that the bug you reported is fixed in the latest version of
bash-completion, which is due to be installed in the Debian FTP archive:

bash-completion_20060301-4.diff.gz
  to pool/main/b/bash-completion/bash-completion_20060301-4.diff.gz
bash-completion_20060301-4.dsc
  to pool/main/b/bash-completion/bash-completion_20060301-4.dsc
bash-completion_20060301-4_all.deb
  to pool/main/b/bash-completion/bash-completion_20060301-4_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 400380@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Luk Claes <luk@debian.org> (supplier of updated bash-completion package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 22 Mar 2008 23:10:30 +0000
Source: bash-completion
Binary: bash-completion
Architecture: source all
Version: 20060301-4
Distribution: unstable
Urgency: low
Maintainer: Luk Claes <luk@debian.org>
Changed-By: Luk Claes <luk@debian.org>
Description: 
 bash-completion - programmable completion for the bash shell
Closes: 351913 400380 435117 452083 468254 471249 471666
Changes: 
 bash-completion (20060301-4) unstable; urgency=low
 .
   * Add some fixes from Ubuntu:
   * Fix completion of filenames with spaces (Closes: #468254).
   * Fix parsing of SSH config files (Closes: #435117).
   * Change priority to standard (Closes: #471666).
   * Add some more completions for xine (Closes: #452083, #471249).
   * Fix completion of gzip (Closes: #351913).
   * Also use $HOSTFILE in hostname completion (Closes: #400380).
Files: 
 fc6044de38a50106afe4ea189ecbc723 592 shells standard bash-completion_20060301-4.dsc
 44d19c6288759aad898392a1b2571845 13499 shells standard bash-completion_20060301-4.diff.gz
 580fdd7af5ae0cd55ec8b5639633447e 123842 shells standard bash-completion_20060301-4_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH5ZJ75UTeB5t8Mo0RAjYlAJ9M+FfedlFVPXRoGLqrbr0qr31sIQCeJfkn
sJXecOvVhOnC7tqIuqSjdJk=
=oxfs
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 01 May 2008 07:40:09 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 10:05:53 2023; Machine Name: bembo

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.