With the fix for #127399 it should no longer run command-not-found when in a subshell or if it does not have a terminal. As for the single user shell, here is what it outputs in karmic:
$ PATH=/sbin:/bin:/usr/games firefox Command 'firefox' is available in '/usr/bin/firefox' The command could not be located because '/usr/bin' is not included in the PATH environment variable. bash: firefox: command not found I think this is helpful advise, please reopen (or report a new bug) if you think otherwise. Thanks, Michael ** Changed in: command-not-found (Ubuntu) Importance: Wishlist => Medium ** Changed in: command-not-found (Ubuntu) Status: New => Fix Released ** Changed in: command-not-found (Ubuntu) Assignee: (unassigned) => Michael Vogt (mvo) -- Wishlist: don't print anything if not connected to a terminal https://bugs.launchpad.net/bugs/212405 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs