After pressing TAB after ssh: nelchael@nelchael ~$ ssh sed: -e expression #1, char 20: unterminated `s' command Expected host list is available after pressing the TAB key again, but the sed error is still there. Versions: [ebuild R ] app-shells/bash-3.1-r2 USE="nls -afs -bashlogger -build -unicode" 0 kB [ebuild R ] app-shells/bash-completion-20050721 0 kB
Created attachment 76172 [details, diff] bash_completion-ssh-bash-3.1.patch This patch solves the problem.
*** Bug 118367 has been marked as a duplicate of this bug. ***
Created attachment 77230 [details, diff] 117770.bugs.gentoo.org-bash-3-ssh.patch No, that patch breaks taking aliases from config files. This patch should work. There is a problem with bash parsing, though.
(In reply to comment #3) > There is a problem with bash parsing, though. Exactly. AFAICS there's nothing wrong with bash-completion as it is now. I'd rather see bash-3.1 fixed than applying a workaround to bash-completion.
See bug 119261 for cause, link and patch.
*** Bug 121225 has been marked as a duplicate of this bug. ***
I guess upstream has decided to work around the bash-3.1 issues instead of pushing to get the real problem fixed. 20060301 is in portage.