Debian Bug report logs -
#633977
bash: completion adds "\ " at end of files in "sudo scp" command
Reported by: Isaac Freeman <isaac@us.ibm.com>
Date: Fri, 15 Jul 2011 15:30:02 UTC
Severity: normal
Found in version bash-completion/1:1.2-3
Done: "Gabriel F. T. Gomes" <gabriel@inconstante.net.br>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, isaac@us.ibm.com, Matthias Klose <doko@debian.org>:
Bug#633977; Package bash.
(Fri, 15 Jul 2011 15:30:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Isaac Freeman <isaac@us.ibm.com>:
New Bug report received and forwarded. Copy sent to isaac@us.ibm.com, Matthias Klose <doko@debian.org>.
(Fri, 15 Jul 2011 15:30:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: bash
Version: 4.1-3
Severity: normal
When typing a command starting with "sudo scp" and trying to tab-complete a filename, bash adds a trailing escaped space on the filename, i.e.:
"$ sudo scp /home/isaac/.bashrc\ "
In current testing the problem is different, the extra space is added but isn't escaped, i.e.:
"$ sudo scp /home/isaac/.bashrc "
This at least doesn't break anything but is still incorrect.
-- System Information:
Debian Release: 6.0.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages bash depends on:
ii base-files 6.0squeeze1 Debian base system miscellaneous f
ii dash 0.5.5.1-7.4 POSIX-compliant shell
ii debianutils 3.4 Miscellaneous utilities specific t
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libncurses5 5.7+20100313-5 shared libraries for terminal hand
Versions of packages bash recommends:
ii bash-completion 1:1.2-3 programmable completion for the ba
Versions of packages bash suggests:
pn bash-doc <none> (no description available)
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#633977; Package bash.
(Fri, 15 Jul 2011 17:15:10 GMT) (full text, mbox, link).
Acknowledgement sent
to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>.
(Fri, 15 Jul 2011 17:15:10 GMT) (full text, mbox, link).
Message #10 received at 633977@bugs.debian.org (full text, mbox, reply):
reassign 633977 bash-completion 1:1.2-3
quit
Hi,
Isaac Freeman wrote:
> When typing a command starting with "sudo scp" and trying to
> tab-complete a filename, bash adds a trailing escaped space on the
> filename, i.e.:
>
> "$ sudo scp /home/isaac/.bashrc\ "
>
> In current testing the problem is different, the extra space is added but isn't escaped, i.e.:
>
> "$ sudo scp /home/isaac/.bashrc "
>
> This at least doesn't break anything but is still incorrect.
Yep, that sounds like a bug. Thanks for reporting it.
Regards,
Jonathan
Bug reassigned from package 'bash' to 'bash-completion'.
Request was from Jonathan Nieder <jrnieder@gmail.com>
to control@bugs.debian.org.
(Fri, 15 Jul 2011 17:15:14 GMT) (full text, mbox, link).
Bug No longer marked as found in versions bash/4.1-3.
Request was from Jonathan Nieder <jrnieder@gmail.com>
to control@bugs.debian.org.
(Fri, 15 Jul 2011 17:15:15 GMT) (full text, mbox, link).
Bug Marked as found in versions bash-completion/1:1.2-3.
Request was from Jonathan Nieder <jrnieder@gmail.com>
to control@bugs.debian.org.
(Fri, 15 Jul 2011 17:15:15 GMT) (full text, mbox, link).
Reply sent
to "Gabriel F. T. Gomes" <gabriel@inconstante.net.br>:
You have taken responsibility.
(Fri, 07 Dec 2018 00:45:07 GMT) (full text, mbox, link).
Notification sent
to Isaac Freeman <isaac@us.ibm.com>:
Bug acknowledged by developer.
(Fri, 07 Dec 2018 00:45:07 GMT) (full text, mbox, link).
Message #21 received at 633977-close@bugs.debian.org (full text, mbox, reply):
On Fri, 15 Jul 2011 11:28:51 -0400 Isaac Freeman <isaac@us.ibm.com> wrote:
> Package: bash
> Version: 4.1-3
> Severity: normal
>
> When typing a command starting with "sudo scp" and trying to tab-complete a filename, bash adds a trailing escaped space on the filename, i.e.:
>
> "$ sudo scp /home/isaac/.bashrc\ "
>
> In current testing the problem is different, the extra space is added but isn't escaped, i.e.:
>
> "$ sudo scp /home/isaac/.bashrc "
>
> This at least doesn't break anything but is still incorrect.
With current bash-completion, this problem does not reproduce:
# sudo scp /root/.bashr[TAB]
# sudo scp /root/.bashrc [CURSOR]
I'm closing the bug report as it doesn't reproduce with current sources
(it would be too much trouble now, after so many years, to try and find
the version that fixed it). Please, do not hesitate to reopen if you
have more information.
Kind regards,
Gabriel
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 04 Jan 2019 07:32:24 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 09:17:49 2023;
Machine Name:
bembo
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.