Le 14/11/2018 à 12:06, Gabriel F. T. Gomes a écrit :
> It also works with the backport.  :)

Great.

>>                        # Remove trailing ] + optional :port
>>                        host="${host%]?(:+([0-9]))}"
>>
>> I'm under the impression that, with IPv6 address, it will remove
>> the last part of it (not tested, I may be wrong). But in my known_hosts
>> file, I've some entry such as:
>> XXXX:YYYY:ZZZZ:100::1 ecdsa-sha2-nistp256
> 
> I added a similar entry to my ~/.ssh/known_hosts, then tried to
> complete with:
> 
>   $ ssh XXX[TAB]
>   $ ssh XXXX:YYYY:ZZZZ:100::1
> 
> Unless I did not understand your concern, I think it works as
> expected.  So, I'll go ahead and backport the patch for the next
> version of Debian's bash-completion.

I was under the impression that it would completes to
"ssh XXXX:YYYY:ZZZZ:100:" only (ie removing the :1,
taking it as a port number). But I did not test it and,
reading your experiment, I was wrong.

  Thanks for your work,
  Regards,
    Vincent

Reply via email to