![]() |
![]()
| ![]() |
![]()
NAME
DESCRIPTIONThe Shell Toolkit, or Script structureScripts using shtk_import module1 shtk_import moduleN # possibly define globals here some_custom_function() { local arg1="${1}"; shift local arg2="${1}"; shift # do something } main() { # program entry point; automatically invoked } In particular, note: that there is no shebang line at the
beginning of the script; that there is no explicit call to
Script compilationThe shtk(1) tool offers a compilation process for scripts using shtk(3). In this context, compilation just refers to the addition of initialization boilerplate code to the script so that the correct modules can be located and that a well-known shell interpreter is used. ModulesThe shtk_import(3) function depicted above is used to bring the specified modules into the script. For details on all existing modules, see the list of cross-referenced pages in the SEE ALSO section below. SEE ALSOBuilt-in functionsModulesshtk_bool(3), shtk_cleanup(3), shtk_cli(3), shtk_config(3), shtk_cvs(3), shtk_fs(3), shtk_hw(3), shtk_list(3), shtk_process(3), shtk_unittest(3), shtk_version(3) AUTHORSThe
|