Debian Bug report logs -
#576675
bash-completion: bash completion for scp overescapes spaces and does not, correctly re-filter ("\\\ " instead of "\ ")
Reported by: Martin Eve <martin@martineve.com>
Date: Tue, 6 Apr 2010 12:36:14 UTC
Severity: normal
Tags: patch
Found in versions bash-completion/1:1.1-3, bash-completion/1:1.2-2
Fixed in version bash-completion/1:1.3-1
Done: David Paleino <dapal@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#576675; Package bash-completion.
(Tue, 06 Apr 2010 12:36:17 GMT) (full text, mbox, link).
Acknowledgement sent
to Martin Eve <martin@martineve.com>:
New Bug report received and forwarded. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>.
(Tue, 06 Apr 2010 12:36:17 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: bash-completion
Version: 1:1.1-3
Severity: normal
Tags: patch
User: ubuntu-devel@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
[patch (text/plain, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#576675; Package bash-completion.
(Fri, 12 Nov 2010 18:45:03 GMT) (full text, mbox, link).
Acknowledgement sent
to jkl345@alice-dsl.net:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>.
(Fri, 12 Nov 2010 18:45:03 GMT) (full text, mbox, link).
Message #10 received at 576675@bugs.debian.org (full text, mbox, reply):
Package: bash-completion
Version: 1:1.2-2
Severity: normal
The command "sudo rsync" is overescaped, too.
Test sequence:
touch '/tmp/filename with spaces'
sudo rsync /tmp/filenam<tab>
The result is:
sudo rsync /tmp/filename\\\ with\\\ spaces\ |end of line|
I am not sure wether this has the same cause, but I guess so.
Greetings,
Raoul Bönisch
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.37-rc1-nouveau-2010-11-08 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages bash-completion depends on:
ii bash 4.1-3 The GNU Bourne Again SHell
bash-completion recommends no packages.
bash-completion suggests no packages.
-- no debconf information
Bug Marked as fixed in versions bash-completion/1:1.3-1.
Request was from David Paleino <dapal@debian.org>
to control@bugs.debian.org.
(Wed, 27 Apr 2011 11:39:11 GMT) (full text, mbox, link).
Bug closed, send any further explanations to Martin Eve <martin@martineve.com>
Request was from David Paleino <dapal@debian.org>
to control@bugs.debian.org.
(Wed, 27 Apr 2011 11:39:16 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Thu, 26 May 2011 07:40:01 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 10:10:12 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.