6 Running location handlers

A location is a chunk of code between the following enter and leave actions:

mbfl_location_enter
{
   ...
}
mbfl_location_leave

inside a location we can register a “handler command” that is automatically executed whenever the location is left by calling mbfl_location_leave(). We can nest locations at will. We can run all the handlers registered so far in a stack of locations. Location handlers are stored in hooks, Executing commands with event hooks.


This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.