[Bash-completion-devel] Bug#576675: bash-completion: bash completion for scp overescapes spaces and does not, correctly re-filter ("\\\ " instead of "\ ")
Martin Eve
martin at martineve.com
Tue Apr 6 12:35:17 UTC 2010
Package: bash-completion
Version: 1:1.1-3
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu karmic ubuntu-patch
Directory structure on target:
/home/martin/directory 1/directory 2/file.txt
Type:
scp target:/home/martin/directory<TAB><TAB>
Expected:
scp target:/home/martin/directory 1/directory 2/
Actual:
scp target:/home/martin/directory\\\ 1/
To summarise, it is impossible to do any further autocompletion once the
\\\ escape sequence has been given.
This is caused by the incorrect line:
# unescape spaces
path=${path//\\\\\\\\ / }
in contrib/ssh
It should, instead, read:
# unescape spaces
path=${path//\\\\}
This is fixed in bash-completion version control, but next release is
not scheduled for quite some time (AFAIK).
*** /tmp/tmpmIQ722
In Ubuntu, we've applied the attached patch to achieve the following:
* Fix scp overescaping (LP:482753)
We thought you might be interested in doing the same.
-- System Information:
Debian Release: squeeze/sid
APT prefers karmic-updates
APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500,
'karmic')
Architecture: i386 (i686)
Kernel: Linux 2.6.31-14-generic (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20100406/33b3f48e/attachment.asc>
More information about the Bash-completion-devel
mailing list