A small collection of loadable bash builtins I've written, mainly to see what is possible to do with loadable builtins. Some of these may be useful.
Currently bash 4.4 is not yet released, and one of the new things in bash 4.4 will be an easier way to build loadable builtins. So until bash 4.4 is released and systems have caught up with this new version, you'll have to build it yourself, or at least configure it and install the headers
If this is the first time, clone the repository
git clone git://git.sv.gnu.org/bash.gitThen enter the cloned repo, and switch to the devel branch:
cd bash &&
git checkout devel &&
git pullThen configure it and run make on the install-headers target
./configure &&
make &&
make install-headers &&
make -C examples/loadables install-devThe above should install "$prefix/lib/bash/Makefile.inc" in addition to some
header files.
To build, just run
makeIf you specified a --prefix on the configure, add this to make so it finds the installed files:
make prefix=/some/whereTo be continued...