On 2008-01-04, at 12:30, Smylers wrote:
* The docs suggest that you set $command_not_found_handle to the name of
  the function you want to run.  I couldn't get this to work.

It does actually say that it's the name of a function, not a variable, but putting it in the shell variable section seems pretty hateful, yes.

  To get this your function has to duplicate the default behaviour
  before adding in its own check.  This obviously doesn't scale, and
  makes assumptions about what the default behaviour is.

The normal way to do this is to rename the old function and call it
from the new. Unfortunately there doesn't seem to be a way to rename
functions in bash.

Reply via email to