Home > Blog > Change in command-not-found handler default behaviour

Change in command-not-found handler default behaviour
1 star2 stars3 stars4 stars5 stars
(votes: 1, avg: 5.00)
Loading ... Loading ...

February 9th, 2009 Leave a comment Go to comments

Due to some requests on mailing lists and Feature #305803 I decided to change the default behavior of command-not-found handler (in openSUSE 11.2 and SLE11).

Now it prints this info immediately:

$ blender
If 'blender' is not a typo you can use command-not-found to lookup the package
that contains it, like this:
    command-not-found blender
bash: blender: command not found

$ ifconfig
Absolute path to 'ifconfig' is '/sbin/ifconfig', so running it may require
superuser privileges (eg. root).
bash: ifconfig: command not found

instead of directly performing the search.

If you want the old behaviour back (i.e. search invoked automatically), just add

export COMMAND_NOT_FOUND_AUTO=1

to your bash profile. (This is also documented in command-not-found man page).

You can install the updated packages from home:prusnak:scout BuildService repository as usual.

  1. February 9th, 2009 at 14:22 | #1 | Firefox 3.0.5SuSE

    Next time I will be in Prague? You have a beer from me ;-)

  1. No trackbacks yet.
or