[Bug 482753] Re: bash completion for scp overescapes spaces and does not correctly re-filter ("\\\ " instead of "\ ")

Martin Eve martin at martineve.com
Tue Apr 6 12:50:42 BST 2010


This issue is still present in Lucid.

This single line patch works and has been tested (as the many comments
at https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/449349
will testify.

Please review as a fix for this regression in Lucid.

Martin

** Attachment added: "bash-completion_1.1-3ubuntu1.debdiff"
   http://launchpadlibrarian.net/43239243/bash-completion_1.1-3ubuntu1.debdiff

-- 
bash completion for scp overescapes spaces and does not correctly re-filter ("\\\ " instead of "\ ")
https://bugs.launchpad.net/bugs/482753
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.

Status in “bash-completion” package in Ubuntu: Confirmed

Bug description:
Binary package hint: bash-completion

OS: Karmic 9.10

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//\\\\}

Aiming to do a fix for this asap.





More information about the Ubuntu-sponsors mailing list