[Bug 470037] Re: sudo tab autocomplete shows erratic behavior with spaces in names
Romanos Dodopoulos
470037 at bugs.launchpad.net
Tue Feb 7 20:42:13 UTC 2012
Reproducible at ubuntu 12.04
It is annoying, I was trying to run (sudo) a program and I couldn't figure where was the directory.
simple example1:
t at ubuntu:~/test$ ls
test test space
t at ubuntu:~/test$ ./test #pressing tab
test/ test space/
t at ubuntu:~/test$ sudo ./test #pressing tab
space test/
OR, example2:
t at ubuntu:~/test$ ls | grep cud
cuda
cuda pdfs
t at ubuntu:~/test$ ./cuda #pressing tab
cuda/ cuda pdfs/
t at ubuntu:~/test$ sudo ./cuda #pressing tab
cuda/ pdfs
--
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:
Confirmed
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