Shell Script Loader 0.2

Shell Script Loader is a framework for shell scripts that provides functions that can be used to load, include or call module shell scripts. It supports most shells including Bash, Zsh, Ksh, and other shells based on sh. A compiler can also be used.

Tags shell unix-shell
License Public Domain
State stable

Recent Releases

0.228 Jun 2016 17:19 major feature: Function calls are now less recursive by one level. Now using getcleanpath instead of getabspath. It is simpler, and we don't need the strict features of getabspath. Added loader.bash-4 which strictly supports Bash version 4.0 and above. Also added loader-include-prototype.bash. Added support for MirBSD Ksh. Now using hash to remember location of executable binaries in some places that are applicable and helpful to improve performance without being completely explicit about the path. Reformatted messages to more proper case form. Reformatted changelog file. Some non-critical fixes. It's a complete code overhaul.
0.1.222 Jun 2016 14:17 major feature: ----- 0.1.2 ----- Fixed instances of ` " __ "` which should be ` " __ "`. It caused some scripts to be seen as not readable and not load when '' is loaded with advanced shells like Bash and Zsh. All advanced shell functions now use ` ` instead of ` ` for consistency. Simplified ` ! ... ` to ` ... ` in a getabspath function. We now check LOADER_CS_I if it's still set and has value 0 before unsetting the element in LOADER_CS since Zsh gives an error if it's no longer set. It happens when loader_finish is called in a called script. Now using " !VAR_@ " instead of IFS=' ' and !VAR_* . Now using 'printf' instead of 'echo' in a 'for' loop when applicable. ----- 0.1.1 ----- Added this changelog. Added an internal function for getting absolute paths in the generic script Normal shells are now independent of the external commands getabspath and awk. Fixed detection of the optional external command getabspath. This time also, it will only be used if the newly added internal function doesn't work for the shell. No changes were made in other scripts. --- 0.1 --- First presentable release.