Comment 0 for bug 1873889

Revision history for this message
Guillaume FRANCOIS (guillaume-francois55) wrote :

When I'm running a working alias with a ampersand part of the alias name, the tool command-not-found is crashing. Then I have to "CTRL+C" to get back the prompt..

alias is "ssh myccount@myserver" for the name "sshmyserver"

francogu@francogu:/$ sshmyserve&
[1] 17987
francogu@francogu:/$ Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:

command-not-found version: 0.3
Python version: 3.7.5 final 0
Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan
Exception information:

unable to open database file
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 23, in crash_guard
    callback()
  File "/usr/lib/command-not-found", line 90, in main
    cnf = CommandNotFound.CommandNotFound(options.data_dir)
  File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 79, in __init__
    self.db = SqliteDatabase(dbpath)
  File "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 12, in __init__
    self.con = sqlite3.connect(filename)
sqlite3.OperationalError: unable to open database file
^C
[1]+ Exit 127 sshtedbackenda