shlib / core
The core of the shlib API implements only that which is deemed necessary to implement the shlib framework. In short, if it was necessary to implement the shlib executable, than it is supplied by the shlib core, otherwise it will be found in one of the other libraries.
All library interfaces are bound to a name-space alias. This means that shlib
routines are prefixed with shlib.
. E.g. shlib.error "${message}"
.
Routines found in the math library will be similarly prefixed, such as
math.sum 1 2 3 4 5
.
You can get information about a library, and a list of the library's provided
interfaces via the command shlib --help <library>
. To see documentation for
a specific interface use shlib --help <library>.<interface>
.
error, die, getarg, hascmd, hasfunc, import, main, optarg, pathcmd realpath