Opened 12 years ago

Closed 11 years ago

#37858 closed defect (invalid)

bash-completion @2.0: not autocompleting ssh known_hosts

Reported by: jithin1987@… Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: bash-completion

Description

I am using bash-completion @2.0 and bash version 4.2.42(2)-release (i386-apple-darwin11.4.2). I also tried with bash from macports but bash-completion is not autocompleting ssh hostnames. And my hostnames are not hashed.

Attachments (1)

bash-completion.txt (2.4 KB) - added by jithin1987@… 12 years ago.
Debug steps

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by jithin1987@…

Cc: jithin1987@… added

Cc Me!

comment:2 Changed 12 years ago by larryv (Lawrence Velázquez)

Cc: jithin1987@… removed
Keywords: bash autocomplete removed
Owner: changed from macports-tickets@… to raimue@…
Summary: bash-completion not autocompleting ssh known_hostsbash-completion @2.0: not autocompleting ssh known_hosts

Thanks for the ticket. In the future, please try to Cc relevant port maintainers. Also, you don’t have to Cc yourself if you’re the one reporting the ticket :)

comment:3 Changed 12 years ago by raimue (Rainer Müller)

Status: newassigned

I can't reproduce the issue. If I use ssh <Tab> I see the hosts from my .ssh/known_hosts.

Can you please try to get me the debug output using these commands?

$ script bash-completion.txt
$ set -x
$ ssh <Tab>
$ exit

Then attach the resulting bash-completion.txt to this ticket. Please review the file beforehand and check whether it contains any private information (hostnames and IP addresses).

Changed 12 years ago by jithin1987@…

Attachment: bash-completion.txt added

Debug steps

comment:4 Changed 11 years ago by raimue (Rainer Müller)

Resolution: invalid
Status: assignedclosed

I just looked at this report again by chance. I only recognized now that you were using bash 3.2 in the log output provided above. bash-completion requires at least bash >= 4.1. See also port notes bash-completion.

Note: See TracTickets for help on using tickets.