[Bash-completion-devel] bash: completion adds "\ " at end of files in "sudo scp" command

Jonathan Nieder jrnieder at gmail.com
Fri Jul 15 17:12:10 UTC 2011


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



More information about the Bash-completion-devel mailing list