[Bash-completion-devel] Bug#647352: ssh completion only completes first two hosts per line of known_hosts

Paul Wise pabs at debian.org
Wed Nov 2 07:21:31 UTC 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20111102/8a607df0/attachment.pgp>


More information about the Bash-completion-devel mailing list