5.1 Facilities to exit a script

Function: mbfl_exit CODE

Wrapper for the exit command that updates the internal script’s state.

Variable: mbfl_PENDING_EXIT_CODE

Set by mbfl_exit() to the exit code this script is using. This variable might be accessed by atexit commands to appropriately react to an error condition; Running scripts at exit-time.

Function: mbfl_script_is_exiting

Return true if the script is exiting. This function might be called by a location command being run by an atexit command, Running scripts at exit–time.


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