Your message dated Wed, 5 Mar 2008 22:23:32 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#426102: bash: known_hosts completion now obsolescent?
has caused the Debian Bug report #426102,
regarding ssh completion - please exclude hashed hosts from output
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.)


-- 
426102: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426102
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: bash
Version: 3.1dfsg-8
Severity: wishlist
File: /etc/bash_completion
Tags: patch

Hello,
Please apply following patch to exclude hashed hostnames from ssh host
completion results.

Regards
        Artur

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.21-1-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash depends on:
ii  base-files                    4.0.0      Debian base system miscellaneous f
ii  debianutils                   2.20.1     Miscellaneous utilities specific t
ii  libc6                         2.5-10     GNU C Library: Shared libraries
ii  libncurses5                   5.6-3      Shared libraries for terminal hand

bash recommends no packages.

-- no debconf information

-- 
windows jest jak Odie - głupi jak but, cały czas się uśmiecha, a linux jak
Garfield - może i by coś zrobił, ale trzeba go najpierw do tego zmusić.
                                                        /yacoob/
--- bash_completion.orig	2007-06-08 20:45:45.000000000 +0200
+++ bash_completion	2007-06-08 20:46:54.000000000 +0200
@@ -2489,7 +2489,7 @@ _known_hosts()
 
 		# FS needs to look for a comma separated list
 		COMPREPLY=( $( awk 'BEGIN {FS=","}
-				{for (i=1; i<=2; ++i) { \
+				/^[^|]/ {for (i=1; i<=2; ++i) { \
 				       gsub(" .*$", "", $i); \
 				       if ($i ~ /'$cur'/) {print $i} \
 				}}' [EMAIL PROTECTED] 2>/dev/null ) )

--- End Message ---
--- Begin Message ---
Version: 20060301-1

On Sat, May 26, 2007 at 12:11:26PM +0200, Reuben Thomas wrote:

> Because recent openssh obfuscates the contents of known_hosts, it's no
> longer terribly useful to complete from it. I suggest this support be
> removed. If you disagree, then at least only offer completions that
> make sense, i.e. those lines with IP addresses or host names. One easy
> and seemingly reliable way to do this is to filter the file with "grep
> -v '|'" before offering completions.

This bug has been fixed in a recently uploaded package.

Cheers

Luk


--- End Message ---

Reply via email to