$ scp 19<TAB> +++ sed -ne 's/^[Hh][Oo][Ss][Tt][' ']*\([^*?]*\)$/\1/p' /etc/ssh/ssh_config /home/scop/.ssh/config sed: -e expression #1, char 20: unterminated `s' command Attached patch seems to fix this (needs to be applied in other places in bash_completion as well), patch forwarded upstream and comments requested.
Created attachment 122842 [details] Potential sample fix
Same problem here with: ssh localh<ESC><ESC> Patch works for me.
Thanks for testing and the feedback. I haven't heard from upstream, so committed a patch which changes other similar constructs as well; been running with it for a while and noticed no problems. This will be in the next Extras push.