Suggest be case insensitve
Bug #824331 reported by
周成瑞
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Scenario: I want to use Xnest. I type 'xnest', and the shell just tells me command not found and no suggestion. Oops, doesn't Ubuntu ship Xnest? Later I know I must type 'Xnest' to know which package I should install.
I looked at the code:
def lookup(self, key):
if self.db and self.db.
return self.db[key]
We are using exact matching.
I suggest ignore letter cases when looking up in the databases, since we usually do not know or remember the exact cases of commands.
To post a comment you must log in.