Package: bash Version: 3.1dfsg-8 Severity: normal --- Please enter the report below this line. ---
The host completion for ssh parses the ssh config file (for example ~/.ssh/config) for configured hosts (the lines for this look like "Host xyz"). But the regular expression used for this also matches on other parameters in the config file, like "HostbasedAuthentication no" and "HostName abc", which leads to wrong completion suggestions (like "basedAuthentication", "no", or "Name" :) The attached patch fixes this for me (it just adds a space after the "Host" string in the RegExp): Regards, Oliver --- System information. --- Architecture: i386 Kernel: Linux 2.6.18-4-k7 Debian Release: 4.0 990 testing mainbox 990 testing deb.opera.com 500 unstable viewizard.com 500 unstable mainbox 500 stable mainbox 500 stable deb.opera.com 500 experimental mainbox --- Package information. --- Depends (Version) | Installed ===========================-+-============ base-files (>= 2.1.12) | 4 debianutils (>= 2.15) | 2.18
--- /tmp/bash_completion.orig 2007-07-29 13:02:35.000000000 +0200 +++ /etc/bash_completion 2007-07-29 00:49:12.000000000 +0200 @@ -2509,7 +2509,7 @@ fi # append any available aliases from config files if [ [EMAIL PROTECTED] -gt 0 ] && [ -n "$aliases" ]; then - hosts=$( compgen -W "$( sed -ne 's/^[Hh][Oo][Ss][Tt]['"$'\t '"']*\([^*?]*\)$/\1/p' [EMAIL PROTECTED] )" -- $ocur ) + hosts=$( compgen -W "$( sed -ne 's/^[Hh][Oo][Ss][Tt] ['"$'\t '"']*\([^*?]*\)$/\1/p' [EMAIL PROTECTED] )" -- $ocur ) COMPREPLY=( [EMAIL PROTECTED] $hosts ) fi

