Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 117770

Summary: bash_completion breaks with bash-3.1
Product: Gentoo Linux Reporter: Krzysztof Pawlik (RETIRED) <nelchael>
Component: New packagesAssignee: Aaron Walker (RETIRED) <ka0ttic>
Status: RESOLVED FIXED    
Severity: normal CC: bugs-gentoo, chutzpah, creideiki+gentoo-bugzilla, ed, ikelos, lisa, olaf, tm
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 119261    
Bug Blocks:    
Attachments: bash_completion-ssh-bash-3.1.patch
117770.bugs.gentoo.org-bash-3-ssh.patch

Description Krzysztof Pawlik (RETIRED) gentoo-dev 2006-01-04 11:44:47 UTC
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
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-01-04 11:46:09 UTC
Created attachment 76172 [details, diff]
bash_completion-ssh-bash-3.1.patch

This patch solves the problem.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-01-09 02:20:51 UTC
*** Bug 118367 has been marked as a duplicate of this bug. ***
Comment 3 Ed Catmur 2006-01-15 22:45:26 UTC
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.
Comment 4 Aaron Walker (RETIRED) gentoo-dev 2006-01-16 13:29:58 UTC
(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.
Comment 5 Ed Catmur 2006-01-17 00:46:29 UTC
See bug 119261 for cause, link and patch.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-02-01 14:19:13 UTC
*** Bug 121225 has been marked as a duplicate of this bug. ***
Comment 7 Aaron Walker (RETIRED) gentoo-dev 2006-03-02 04:03:46 UTC
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.