[Bug 470037] Re: sudo tab autocomplete shows erratic behavior with spaces in names
Peter Cordes
peter at cordes.ca
Sat Nov 29 09:44:31 UTC 2014
not present in Trusty. Thanks Romanos for the testcase:
mkdir test{,\ space}
./test<tab> => test/ test space/
sudo ./test<tab> => test/ test space/
** 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/470037
Title:
sudo tab autocomplete shows erratic behavior with spaces in names
Status in bash-completion package in Ubuntu:
Fix Released
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 at 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 at telescreen:~$ sudo ./Ubuntu\\\
(with a space on the end)
If you continue and type:
sudo ./Ubuntu\ One/
Hitting tab will yield:
mike at telescreen:~$ sudo ./Ubuntu\\\ One/
hitting tab again with resort to what you originally typed without the extra backslashes/escapes.
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)
NonfreeKernelModules: nvidia
Package: bash-completion 1:1.0-3ubuntu2
PackageArchitecture: all
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: bash-completion
Uname: Linux 2.6.31-14-generic x86_64
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/470037/+subscriptions
More information about the foundations-bugs
mailing list