Couldn't this be fixed by simply rewriting the 'try' clause in /usr/bin
/command-not-found? I've got something like this in mind:

  try:
      ...

  #except KeyboardInterrupt:  # don't need this anymore
  #   ...

  finally:
      import sys
      sys.exit(1)

This would ensure that no matter what, command-not-found always returns
failure. Of course, exitting with another code would be impossible now,
since finally clauses are executed even after a call to sys.exit().

-- 
wrong exit code
https://launchpad.net/bugs/67726

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to