sudo tab autocomplete shows erratic behavior with spaces in names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash-completion (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bash-completion
I have observed this behavior on two machines running Ubuntu AMD64 9.10
To reproduce, open up a terminal with bash
Then go to a directory that contains a folder or directory with spaces in its name.
Type "sudo ./" and then the first part of the name before the space. Ie, if you have "Ubuntu One" in your directory, type:
sudo ./Ubuntu
This will yield output like:
mike@telescreen:~$ sudo ./Ubuntu
One Ubuntu
Going further, if you type:
sudo ./Ubuntu\
(note the space on the end of that)
Hitting tab will yield
mike@telescreen:~$ sudo ./Ubuntu\\\
(with a space on the end)
If you continue and type:
sudo ./Ubuntu\ One/
Hitting tab will yield:
mike@telescreen:~$ sudo ./Ubuntu\\\ One/
hitting tab again with resort to what you originally typed without the extra backslashes/
ProblemType: Bug
Architecture: amd64
Date: Sun Nov 1 23:30:31 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelMo
Package: bash-completion 1:1.0-3ubuntu2
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: bash-completion
Uname: Linux 2.6.31-14-generic x86_64
I am able to reproduce this bug which is also present in Jaunty.