Next: , Previous: , Up: overview   [Contents][Index]


1.4 Using the library interactively

It is possible, but not recommended, to source the library in an interactive shell, though some modules must be disabled. The purpose of interactive loading is only to test and debug the functions by hand.

To do this execute the following code in the shell before sourcing the library:

mbfl_INTERACTIVE=yes

without exporting the variable. The “dangerous” blocks of code in the library are surrounded by:

if test "$mbfl_INTERACTIVE" != 'yes'
then
    ...
fi

so they are not executed. Disabled modules are: main, actions, getopts, signal; “disabled” does not mean that the functions are not there: only the global variable declarations are excluded; this is a little dirty, but, at present, it should work.


Next: , Previous: , Up: overview   [Contents][Index]

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