Public bug reported:

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.

** Affects: bash-completion (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to