When you try to complete a path of the host:... form the rsync script does not do it correctly. If you look at the code, it is the same as the scp code in the ssh script. The only difference is that the scp code has cur=`_get_cword ":"` but the rsync script has cur = `_get_cword` If you change for the scp version it works correctly. The only problem is I'm not sure if it might break something else for rsync bash completion... Reproducible: Always Steps to Reproduce: 1. Type rsync hostname: 2. Press <tab> Actual Results: You will see a list of local files and directories. Expected Results: List of remote files and directories.
Created attachment 213701 [details] New ebuild fixing rsync ssh remote path completion It fixes it with a sed one liner.
By the way, bug is not fixed in upstream. I will report bug there too but pending new version, I think it should be fixed here.
Nice find, please include your upstream reference here.
Upstream reference https://alioth.debian.org/tracker/index.php?func=detail&aid=312173&group_id=100114&atid=413095
Bug has been fixed in upstream repository. Can we still add a fix to the stable gentoo version?
thanks, added to -r5