dramatic combination of apt-get and bash completion
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash-completion (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I don't know what to blame between apt-get, bash completion and myself… I'm reporting this as a bug but it can also be seen as an open question.
I wanted to install a python related package but was missing the exact name when I was about to type it, thus I tried completion to list the names of python packages:
sudo apt-get install python-[tab]
which nicely produces the list of python-* packages
scrolling the list a bit too far (using [enter]) it launched the command:
sudo apt-get install python-
resulting in the removal of python and a few hundreds of other packages depending on python.
I know it's mostly based on a human mistake (I should have thought about the package name before…), but the result is pretty dramatic and I wonder if something could be done to prevent this?
Maybe scrolling in completion shouldn't use [enter] but arrows or [space]
affects: | ubuntu → bash-completion (Ubuntu) |
Changed in bash-completion (Ubuntu): | |
status: | New → Opinion |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1004225/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]