[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 14:54:43 BST 2010
Note: this bug is fixed upstream in *version control*.
However, upstream will certainly not release in time for Lucid, hence
the patch here.
--
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