Public bug reported:
Enter '' (that's single quote, single quote, enter) in bash. The
following output is produced.
[EMAIL PROTECTED]:~$ ''
Traceback (most recent call last):
File "/usr/bin/command-not-found", line 22, in ?
if not CommandNotFound(options.data_dir).advise(args[0]):
File "/usr/lib/python2.4/site-packages/CommandNotFound/CommandNotFound.py",
line 119, in advise
suggestions = self.getSuggestions(command)
File "/usr/lib/python2.4/site-packages/CommandNotFound/CommandNotFound.py",
line 104, in getSuggestions
result.extend(db.lookup(command))
File "/usr/lib/python2.4/site-packages/CommandNotFound/CommandNotFound.py",
line 87, in lookup
return [ Suggestion(row[self.TEXT], magicSplit(row[self.PROGRAMS], ","))
for row in self.db.lookup(self.COMMAND, command) ]
IndexError: list index out of range
-bash: : command not found
The last line is correct, but the backtrack should not be visible.
Occurs both in trunk and version from Edgy.
** Affects: command-not-found (upstream)
Importance: Undecided
Status: Unconfirmed
** Affects: Ubuntu
Importance: Undecided
Status: Unconfirmed
** Also affects: Ubuntu
Importance: Undecided
Status: Unconfirmed
--
'' causes a backtrack
https://bugs.launchpad.net/bugs/105228
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs