[Bug 966010] [NEW] /etc/bash.bashrc checks for command-not-found OR command-not-found-data

Juan J. Martínez 966010 at bugs.launchpad.net
Tue Mar 27 08:12:46 UTC 2012


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
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/966010

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

Status in “bash” package in Ubuntu:
  New

Bug description:
  /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.

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




More information about the foundations-bugs mailing list