[Bash-completion-devel] [bash-completion-Bugs][312173] rsync script does not correctly complete host: word with ssh connection.

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Wed Dec 23 14:19:42 UTC 2009


Bugs item #312173, was changed at 2009-12-21 20:56 by Ville Skyttä 
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312173&group_id=100114

>Status: Closed
Priority: 3
Submitted By: Jeremie Lasalle Ratelle (ratelle-guest)
Assigned to: Ville Skyttä  (scop-guest)
Summary: rsync script does not correctly complete host: word with ssh connection. 
Distribution: Gentoo
Originally reported in: Gentoo Bugzilla
>Milestone: 2.0
>Status: Fix Committed
Original bug number: 297818


Initial Comment:
Copying gentoo bug report

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.


----------------------------------------------------------------------

>Comment By: Ville Skyttä  (scop-guest)
Date: 2009-12-23 16:19

Message:
Thanks, done in git.

----------------------------------------------------------------------

Comment By: Jeremie Lasalle Ratelle (ratelle-guest)
Date: 2009-12-22 21:55

Message:
I did

http://bugs.gentoo.org/show_bug.cgi?id=297818

----------------------------------------------------------------------

Comment By: Ville Skyttä  (scop-guest)
Date: 2009-12-22 20:03

Message:
I think this is the right thing to do; could you point me to the Gentoo bug number so I get a better picture who made that suggestion so we get the attribution for the fix right?

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312173&group_id=100114



More information about the Bash-completion-devel mailing list