[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:35:17 BST 2010
** Tags added: lucid
** This bug is no longer a duplicate of bug 449349
regression for completing remote files/dirs over ssh
--
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