[Bug 1004225] [NEW] dramatic combination of apt-get and bash completion

Launchpad Bug Tracker 1004225 at bugs.launchpad.net
Sun Jun 3 15:43:09 UTC 2012


You have been subscribed to a public bug:

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: bash-completion (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bot-comment
-- 
dramatic combination of apt-get and bash completion
https://bugs.launchpad.net/bugs/1004225
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to bash-completion in Ubuntu.




More information about the foundations-bugs mailing list