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

Bryce Harrington 482753 at bugs.launchpad.net
Tue Oct 4 01:45:36 UTC 2011


[The patch is no longer relevant to oneiric; opening a Lucid task
instead.]

** Also affects: bash-completion (Ubuntu Lucid)
   Importance: Undecided
       Status: New

** Changed in: bash-completion (Ubuntu Lucid)
       Status: New => Confirmed

** Changed in: bash-completion (Ubuntu)
       Status: Confirmed => Fix Released

-- 
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:
  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.

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