Debian Bug report logs - #647352
ssh completion does complete hosts after special characters

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: Paul Wise <pabs@debian.org>

Date: Wed, 2 Nov 2011 04:37:01 UTC

Severity: normal

Tags: confirmed, fixed-upstream, upstream

Found in version bash-completion/1:1.3-1

Fixed in version bash-completion/1:1.99-1

Done: David Paleino <dapal@debian.org>

Bug is archived. No further changes may be made.

Forwarded to http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=333a5a5

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#647352; Package bash-completion. (Wed, 02 Nov 2011 04:37:04 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Wise <pabs@debian.org>:
New Bug report received and forwarded. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Wed, 02 Nov 2011 04:37:04 GMT) (full text, mbox, link).


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

From: Paul Wise <pabs@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ssh completion does complete hosts after special characters
Date: Wed, 02 Nov 2011 12:34:54 +0800
[Message part 1 (text/plain, inline)]
Package: bash-completion
Version: 1:1.3-1
Severity: normal
File: /etc/bash_completion.d/ssh

I am unable to complete 'ssh alio' when my hosts file contains special
characters before the alioth alias. It works when I put the special
characters at the end though. The / and + are for jumping through
different kinds of ssh jumphosts[1].

pabs@chianamo:~$ grep alioth .ssh/hosts/*
.ssh/hosts/debian:wagner.debian.org,*/wagner.debian.org,*+wagner.debian.org,alioth.debian.org,alioth,217.196.43.132,217.196.43.134 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEApH6uMkt/PlYAgMxw7tKTzQW9y7YLt06i81gHqtO/Xacbmtnu0DJNN6uvR3czzmHkB+kcO88Am64Fitn3O0YRg/Zqgxum0G8Uuc/g7iNfeF4tYxyWad0TbURa88xqu0CR9UwNJ0emz98iUvM1lsc+NukbMk3ONFy+XtsXDOoKttZyS/k8bNRnq3Iz9uWEHz1zFDhjarpnoj1ClpzfroWDuBRBVvwY78t0e8ZycGQx9sONi7YM/6e2PHldVyIDaJY3RD3T1+sa5yO0vESE86JuS9yZlmuokD9/csP/udTWLhF63DVyq6MxmZtqvoHMl4RtZq4U59TqPCjWg/3Q+3ZqzQ== root@wagner

     1. http://blog.ganneff.de/blog/2007/12/15/using-a-ssh-jumphost.html

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (700, 'testing'), (600, 'unstable'), (550, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash-completion depends on:
ii  bash  4.1-3

-- 
bye,
pabs

http://wiki.debian.org/PaulWise
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#647352; Package bash-completion. (Wed, 02 Nov 2011 07:24:03 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Wise <pabs@debian.org>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Wed, 02 Nov 2011 07:24:04 GMT) (full text, mbox, link).


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

From: Paul Wise <pabs@debian.org>
To: 647352@bugs.debian.org
Subject: Re: ssh completion only completes first two hosts per line of known_hosts
Date: Wed, 02 Nov 2011 15:21:31 +0800
[Message part 1 (text/plain, inline)]
retitle 647352 ssh completion only completes first two hosts per line of known_hosts
thanks

On Wed, 2011-11-02 at 12:34 +0800, Paul Wise wrote:

> I am unable to complete 'ssh alio' when my hosts file contains special
> characters before the alioth alias. It works when I put the special
> characters at the end though. The / and + are for jumping through
> different kinds of ssh jumphosts[1].

Turns out that this is because of this line in /etc/bash_completion:

            /^\s*[^|\#]/ {for (i=1; i<=2; ++i) { \

When I changed the 2 to 20 my issue was resolved.

-- 
bye,
pabs

http://wiki.debian.org/PaulWise
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#647352; Package bash-completion. (Fri, 04 Nov 2011 23:00:03 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>. (Fri, 04 Nov 2011 23:00:03 GMT) (full text, mbox, link).


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

From: Ville Skyttä <ville.skytta@iki.fi>
To: Paul Wise <pabs@debian.org>, 647352@bugs.debian.org
Subject: Re: [Bash-completion-devel] Bug#647352: ssh completion only completes first two hosts per line of known_hosts
Date: Sat, 05 Nov 2011 00:56:15 +0200
Fixed in upstream git:
http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=333a5a5




Added tag(s) fixed-upstream. Request was from Paul Wise <pabs@debian.org> to control@bugs.debian.org. (Sat, 05 Nov 2011 05:24:03 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=333a5a5'. Request was from Paul Wise <pabs@debian.org> to control@bugs.debian.org. (Sat, 05 Nov 2011 05:24:04 GMT) (full text, mbox, link).


Added tag(s) upstream and confirmed. Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Sat, 05 Nov 2011 10:45:24 GMT) (full text, mbox, link).


Reply sent to David Paleino <dapal@debian.org>:
You have taken responsibility. (Sat, 07 Jan 2012 23:48:23 GMT) (full text, mbox, link).


Notification sent to Paul Wise <pabs@debian.org>:
Bug acknowledged by developer. (Sat, 07 Jan 2012 23:48:23 GMT) (full text, mbox, link).


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

From: David Paleino <dapal@debian.org>
To: 647352-close@bugs.debian.org
Subject: Bug#647352: fixed in bash-completion 1:1.99-1
Date: Sat, 07 Jan 2012 23:47:22 +0000
Source: bash-completion
Source-Version: 1:1.99-1

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_1.99-1.debian.tar.gz
  to main/b/bash-completion/bash-completion_1.99-1.debian.tar.gz
bash-completion_1.99-1.dsc
  to main/b/bash-completion/bash-completion_1.99-1.dsc
bash-completion_1.99-1_all.deb
  to main/b/bash-completion/bash-completion_1.99-1_all.deb
bash-completion_1.99.orig.tar.bz2
  to main/b/bash-completion/bash-completion_1.99.orig.tar.bz2



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 647352@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David Paleino <dapal@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.8
Date: Sun, 08 Jan 2012 00:29:16 +0100
Source: bash-completion
Binary: bash-completion
Architecture: source all
Version: 1:1.99-1
Distribution: unstable
Urgency: low
Maintainer: Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>
Changed-By: David Paleino <dapal@debian.org>
Description: 
 bash-completion - programmable completion for the bash shell
Closes: 647352 647684 647941 650514
Changes: 
 bash-completion (1:1.99-1) unstable; urgency=low
 .
   * Uploading to unstable
   * New upstream pre-2.x snapshot
     - correctly list purgeable packages for dpkg --listfiles and dpkg
       --purge (Closes: #647684)
     - fix bash_completion paths in README (Closes: #647941)
     - _known_hosts_real: Handle more than two hostnames per known hosts
       line (Closes: #647352)
     - _known_hosts_real: Support > 1 files per *KnownHostsFile line
       (Closes: #650514)
Checksums-Sha1: 
 31f41068151dbd39df9ec0a19c3d06458af8a557 1394 bash-completion_1.99-1.dsc
 1fedad82921cf852177549ab389452cfd6fdbe08 244809 bash-completion_1.99.orig.tar.bz2
 9831f7365dd9d4a3322f2744408dc0145dcc0896 13232 bash-completion_1.99-1.debian.tar.gz
 b3d640bab415e66e594eee0af53fcc0b46492713 188996 bash-completion_1.99-1_all.deb
Checksums-Sha256: 
 8718be208875ff33254e2b5b54ff91aa8b1b3b9c6c98e2a451289a02849d586c 1394 bash-completion_1.99-1.dsc
 a2baf5130fa015527f435e145949029c653f0106c89ccfd20ad8987f292ed314 244809 bash-completion_1.99.orig.tar.bz2
 d773ca2296e3515a2f0b0353e262181dcdfe12e56e0688475a6aaee208dedd6d 13232 bash-completion_1.99-1.debian.tar.gz
 a4da44821e7f7a1167cea0ca5a28ef63809871376e887eff1e74a127bcd199fd 188996 bash-completion_1.99-1_all.deb
Files: 
 bf3b8dbf3ce8c62d89c3e586fab2328f 1394 shells standard bash-completion_1.99-1.dsc
 3cf478b7f1065f424d3d6ec35f80e4f2 244809 shells standard bash-completion_1.99.orig.tar.bz2
 e7af621ae195698f2e449920cfc649e2 13232 shells standard bash-completion_1.99-1.debian.tar.gz
 165f24e18fc5c6f6bf085c649964f755 188996 shells standard bash-completion_1.99-1_all.deb

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

iEYEARECAAYFAk8I1cEACgkQ5qqQFxOSsXSDSgCeMDjnff7uON4jI9iJY5qv3v3v
j38AnjX/jbuaTxchLAOEhJ9VzzoN4f7u
=Lo/d
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 05 Feb 2012 07:39:41 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:43:41 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.