Public bug reported:

/etc/bash.bashrc checks for two paths to detect command-not-found
script: /usr/lib/command-not-found OR /usr/share/command-not-found; and
as consequence when command-not-found package is not installed and
command-not-found-data IS installed, every time the command-not-found
code is triggered we get an error:

/usr/bin/python: can't find '__main__' module in '/usr/share/command-
not-found'

I guess command-not-found should be required by command-not-found-data,
but /etc/bash.bashrc should test path1 AND path2 (instead of OR).

If both command-not-found and command-not-found-data are not installed,
bash.bashrc code works as expected.

** Affects: bash (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/966010

Title:
  /etc/bash.bashrc checks for command-not-found OR command-not-found-
  data

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/966010/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to