[Bug 482753] Re: bash completion for scp overescapes spaces and does not correctly re-filter ("\\\ " instead of "\ ")
Rolf Leggewie
482753 at bugs.launchpad.net
Wed Jun 17 12:13:28 UTC 2015
lucid has seen the end of its life and is no longer receiving any
updates. Marking the lucid task for this ticket as "Won't Fix".
** Changed in: bash-completion (Ubuntu Lucid)
Status: Confirmed => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/482753
Title:
bash completion for scp overescapes spaces and does not correctly re-
filter ("\\\ " instead of "\ ")
Status in bash-completion package in Ubuntu:
Fix Released
Status in bash-completion source package in Lucid:
Won't Fix
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/482753/+subscriptions
More information about the foundations-bugs
mailing list