[Bash-completion-devel] [bash-completion-Bugs][313497] [lp:772571] scp and rsync error on local path completion

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Sat Dec 8 08:32:56 UTC 2012


bash-completion-Bugs item #313497, was changed at 2012-12-08 10:32 by Ville Skyttä
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313497&group_id=100114

>Status: Closed
Priority: 3
Submitted By: Daniel Black (grooverdan-guest)
Assigned to: Nobody (None)
Summary: [lp:772571] scp and rsync error on local path completion 
Distribution: Ubuntu
Originally reported in: Ubuntu Launchpad
Milestone: None
>Status: Fix Committed
Original bug number: 772571


Initial Comment:
from: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/772571

---
rsync -avhP eleven:"~/dixon/etc/foo" /et

in bash and then pressing tab, the following errors appear:

bash: unexpected EOF while looking for matching `"'
bash: syntax error: unexpected end of file
--
Also present with scp:
scp  eleven:"~/dixon/etc/foo" /et[TAB]
same result

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

>Comment By: Ville Skyttä  (scop-guest)
Date: 2012-12-08 10:32

Message:
Fixed in 2.0 as noted in LP.

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

Comment By: Igor Murzov (garik-guest)
Date: 2012-01-10 03:02

Message:
bash prints error message on "eval cur=$cur" in _expand():

  if [[ "$cur" == \~*/* ]]; then
>     eval cur=$cur

and $cur here is [~/dixon/etc/foo" /et] for your example. I don't think this is a bash-completion bug, bash is not able to properly split command line if quotes present. This bug could be worked around though.

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

Comment By: Daniel Black (grooverdan-guest)
Date: 2012-01-09 04:14

Message:
also fails against the current git upstream.

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

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



More information about the Bash-completion-devel mailing list