Description of problem: Rsync famously distinguishes between a trailing slash in source directory names compared to without the slash. When using bash-completion however, the completion ignores that a directory name without a trailing slash is a distinctly valid candidate. It would be very useful if the completion for rsync can make this distinction. Version-Release number of selected component (if applicable): all How reproducible: always Steps to Reproduce: 1. Create a test directory structure $ mkdir -p foo{1,2} $ touch foo{1,2}/{bar,baz} 2. Try to complete with foo1 as source, and foo2 as destination Actual results: $ rsync -r foo [TAB] [TAB] foo1/ foo2/ $ rsync -r foo1 [TAB] $ rsync -r foo1/ Expected results: Since in the first case foo1, foo1/, foo2, foo2/, and in the second case foo1 and foo1/, are distinctly different candidates, I propose bash-completion for rsync distinguish between them. $ rsync -r foo [TAB] [TAB] foo1 foo1/ foo2 foo2/ $ rsync -r foo1 [TAB] foo1 foo1/ Additional info: I realise this request is probably not easy, and has the potential to lead to messy code. But having it would be a great enhancement for rsync users, specially novices, and experienced users with a faltering mind ;).