[Bug 769866] Re: tab completion no longer escapes filenames and completes dirnames incorrectly (space instead of slash)

Erik Kratzenberg 769866 at bugs.launchpad.net
Sat Mar 17 16:33:12 UTC 2012


** No longer affects: bash-completion (Ubuntu)

-- 
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/769866

Title:
  tab completion no longer escapes filenames and completes dirnames
  incorrectly (space instead of slash)

Status in “acroread” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: bash

  In maverick, lucid, and other even way older releases, I could use tab
  completion on a filename with characters with special meaning to the
  shell (e.g. spaces):

  matt at lemmankinan:/tmp/complete-test$ ls
  File with spaces.txt
  matt at lemmankinan:/tmp/complete-test$ mv File\ with\ spaces.txt ..
  (on second line, type "mv F<tab> .."

  However, in natty, this is broken for many (though strangely not all)
  commands:

  matt at sampo:/tmp/complete-test$ ls
  File with spaces.txt
  matt at sampo:/tmp/complete-test$ mv File with spaces.txt ..
  mv: cannot stat `File': No such file or directory
  mv: cannot stat `with': No such file or directory
  mv: cannot stat `spaces.txt': No such file or directory
  (again, typing "mv F<tab> .."

  If I start with a quote, e.g. "mv 'F<tab> .." that will work.

  There's also an additional problem with directory names.  If I e.g.
  mkdir -p abc/def/ghi and try to move the above file, if I tab-complete
  the "abc" directory, it will end with a space instead of a slash, so I
  cannot complete further directories.  Again, this works just fine in
  older releases.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: bash 4.2-0ubuntu3
  ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
  Uname: Linux 2.6.38-8-generic i686
  Architecture: i386
  Date: Sun Apr 24 08:43:09 2011
  EcryptfsInUse: Yes
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta i386 (20110413)
  ProcEnviron:
   LANGUAGE=en_US:en
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: bash
  UpgradeStatus: No upgrade log present (probably fresh install)

  
  EDIT: A solution is in comment 10.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acroread/+bug/769866/+subscriptions




More information about the foundations-bugs mailing list