[Bash-completion-devel] [bash-completion-Bugs][314745] SSH hostname completion acts strange when ~/.ssh/config file present

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Tue Jul 1 16:55:27 UTC 2014


bash-completion-Bugs item #314745, was opened at 2014-07-01 12:55 by matt kane
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314745&group_id=100114

Status: Open
Priority: 3
Submitted By: matt kane (mkb-guest)
Assigned to: Nobody (None)
Summary: SSH hostname completion acts strange when ~/.ssh/config file present 
Distribution: --Distribution-Agnostic--
Originally reported in: None
Milestone: None
Status: None
Original bug number: 


Initial Comment:
If ~/.ssh/config exists, then _known_hosts_real takes a code path that temporarily changes the value of IFS. (line 1469 against commit 4bbab196cbce908dacbc225de71433272228a985). If IFS was unset to begin with, then after this block, it's set to the empty string, which subtly changes how bash (or at least my version of bash, 4.3.11(1)) interprets the results of the awk command run on line 1505.

I've attached a patch that fixes the problem for me. 

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314745&group_id=100114



More information about the Bash-completion-devel mailing list