Your message dated Sun, 18 Nov 2018 03:05:13 +0000
with message-id <[email protected]>
and subject line Bug#848125: fixed in bash-completion 1:2.8-4
has caused the Debian Bug report #848125,
regarding bash-completion: Patch to allow '+' in (ssh/know_hosts) hostnames
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
848125: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848125
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bash-completion
Version: 1:2.1-4.3
Severity: normal
Tags: patch

  Hi,

  I'm using automatic gateway with ssh (and ProxyCommand) so that
ssh gw1+gw2+host will correctly setup a connection first to gw1,
then to gw2 (via gw1 and ProxyCommand) and eventually with host
(via gw2 and ProxyCommand) whatever gw1, gw2 and host are.
  To do that, I need the '+' character in ssh hostname. It works perfectly
with ssh, scp, rsync, ... but not with bash-completion. The reason is that
the '+' is not escaped when a regexp for awk is built in _known_hosts_real.

  The patch is really simple:
=======
diff --git a/bash_completion b/bash_completion
index 6d3ba76..c640278 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1484,6 +1496,7 @@ _known_hosts_real()
         # Escape slashes and dots in paths for awk
         awkcur=${cur//\//\\\/}
         awkcur=${awkcur//\./\\\.}
+        awkcur=${awkcur//\+/\\\+}
         curd=$awkcur
 
         if [[ "$awkcur" == [0-9]*[.:]* ]]; then
======= 

  Note that the line number to apply this patch can be a bit changed
(all Debian quilt patch are currently applied in my source tree, so git
show lots of other unrelated changes)
  I also tried to apply my one-liner patch directly to
/usr/share/bash-completion/bash-completion on my system. I can now
autocomplete hostnames with '+' in them.

  Regards,
    Vincent


-- System Information:
Debian Release: stretch/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), 
(200, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armel, mipsel

Kernel: Linux 4.8.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=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

--- End Message ---
--- Begin Message ---
Source: bash-completion
Source-Version: 1:2.8-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.

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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gabriel F. T. Gomes <[email protected]> (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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 17 Nov 2018 23:36:41 -0200
Source: bash-completion
Binary: bash-completion
Architecture: source all
Version: 1:2.8-4
Distribution: unstable
Urgency: medium
Maintainer: Gabriel F. T. Gomes <[email protected]>
Changed-By: Gabriel F. T. Gomes <[email protected]>
Description:
 bash-completion - programmable completion for the bash shell
Closes: 848125 865548 913949
Changes:
 bash-completion (1:2.8-4) unstable; urgency=medium
 .
   * Allow `+' in (ssh/know_hosts) hostnames.  (Closes: #848125)
   * Add completions for OpenRC rc-service.  (Closes: #865548)
   * Add zstd completions for tar.  (Closes: #913949)
Checksums-Sha1:
 6ec064a208a5da3ff735ff00208dfa1b82a33d7c 1969 bash-completion_2.8-4.dsc
 ea9d10a09dc595f4bb9f932c6effebdf8510c431 22312 
bash-completion_2.8-4.debian.tar.xz
 f218c9994d151432535500f7a9aa88c14e5f578d 207580 bash-completion_2.8-4_all.deb
 72699c3e27f62028a8b0aa7df125a51dcab6d56c 5244 
bash-completion_2.8-4_amd64.buildinfo
Checksums-Sha256:
 b188e28748b0f1674e33d1955d3785ccf931c5f8fa074bc831555685eb4ee9cf 1969 
bash-completion_2.8-4.dsc
 04a2316cc3e1ad846902e20b02affbb0aaf422cd5bae5f6aaf3d5274272ec6f6 22312 
bash-completion_2.8-4.debian.tar.xz
 4228d5b145865ff7709a779265ef416d82fec65d31de50d83c3009363e3656b7 207580 
bash-completion_2.8-4_all.deb
 746943f133f6535f542134442353046befccb05673962226a02495ee15c7160d 5244 
bash-completion_2.8-4_amd64.buildinfo
Files:
 324c5ed3449e45aa41b9d5dbddb176a3 1969 shells standard bash-completion_2.8-4.dsc
 74e91d8027bbc1e18eb1e991312cfa75 22312 shells standard 
bash-completion_2.8-4.debian.tar.xz
 6dead90b258534ea4078a0dafbed7c61 207580 shells standard 
bash-completion_2.8-4_all.deb
 846d4382da409b1fd23da84d7239d425 5244 shells standard 
bash-completion_2.8-4_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJPBAEBCgA5FiEE+wUJHFVUA1wadvc8rpsRODhuyvIFAlvwwwsbHGdhYnJpZWxA
aW5jb25zdGFudGUuZXRpLmJyAAoJEK6bETg4bsryeBIP/iGqb3W8AGzFxyY0mL9p
gm4YXphMEj9Enec1AkvyvjWsdSgoiBn6kurKnHe0cKy4szOy94yVrYkhBYDPz54M
H3d8/BefeC9hadGGbIxtadAAw2EdcyRCGrVbUcBJouhk+VZO1AeneWWVqr91DYeL
v/de4/2uc04Q/LU1orEp5m+Kjw9hiNn+wgBoLJYxF4BobdJKkmq4JHFudl7J2dEd
ms+UTKKD9dy1wmDmqpolnWET6eLwnvpqxmXX0NqQ43K+lsgoeioXHMkF7vodzMhK
W6U/5bvCnhuymigOsCwq0oVVKUp4KyZdSO/NIP+5SbjkQXdwMdn9OhVuGA0TPRl/
NvoC1DPmoPILkqtscT8J+wV7dxQbU35NmeP8TAMQwSxqUvl1OAQO+S/m7htvg0Po
yz1LXxsoG31ocOdkErXKAprsiewtW+gfgiiP5adNm8WUchD8qsYu1mJ0Ij1izYVC
tDTMbQYkqrwr7scUBZ3s3FOlt6pKxVgLqhdAOhd53zG8TX4SCDcN+WZZe/HDtlAx
UPsqSqdCFXULDblW5y3em4c81BN14GyXcgJdaopgKJmNtw96+5i48zv3GOt+MT6s
T8sDo/WPKXA00la0ZuHFwcvXotG+Ea+5XOWh5JSTMOOHM+u2m86eP4UNwpLpVfLE
x0YB/bP1isuFWxSs91THsDAI
=VJcF
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to