← Back to team overview

canonical-partner-dev team mailing list archive

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

 

You have been subscribed to a public bug:

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@lemmankinan:/tmp/complete-test$ ls
File with spaces.txt
matt@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@sampo:/tmp/complete-test$ ls
File with spaces.txt
matt@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.

** Affects: acroread (Ubuntu)
     Importance: Undecided
         Status: Confirmed


** Tags: apport-bug natty regression-release running-unity unity-2d
-- 
tab completion no longer escapes filenames and completes dirnames incorrectly (space instead of slash)
https://bugs.launchpad.net/bugs/769866
You received this bug notification because you are a member of Canonical Partner Developers, which is subscribed to acroread in Ubuntu.