{"id":18522393,"url":"https://github.com/sdelements/shtdlib","last_synced_at":"2025-08-08T18:46:30.809Z","repository":{"id":50246072,"uuid":"135175639","full_name":"sdelements/shtdlib","owner":"sdelements","description":"Shell Standard Library","archived":false,"fork":false,"pushed_at":"2023-01-24T23:24:36.000Z","size":582,"stargazers_count":11,"open_issues_count":6,"forks_count":3,"subscribers_count":36,"default_branch":"master","last_synced_at":"2025-03-24T04:51:37.669Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdelements.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-28T14:58:59.000Z","updated_at":"2025-03-11T07:30:05.000Z","dependencies_parsed_at":"2023-02-14T02:31:10.829Z","dependency_job_id":null,"html_url":"https://github.com/sdelements/shtdlib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelements%2Fshtdlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelements%2Fshtdlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelements%2Fshtdlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelements%2Fshtdlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdelements","download_url":"https://codeload.github.com/sdelements/shtdlib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248020593,"owners_count":21034459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T17:30:38.818Z","updated_at":"2025-04-09T10:33:35.363Z","avatar_url":"https://github.com/sdelements.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shtdlib\nShell Standard Library\n\n## Compatibility\n\nSupported bash versions currently include the following though not all\nfunctions will be supported on all versions.\n\n- 3.2.57\n- 4.0.44\n- 4.1.17\n- 4.2.53\n- 4.3.48\n- 4.4.23\n- 5.0-beta\n\nSupport for bash 3.1 has bene deprecated.\n\n\n## Installation\n\nFor an example of how to install/import see:\n\n```bash\nimport_install_example.sh\n```\n\n## Common settings\n\nVariables/Options which can be set/exported to change the behaviour of the\nlibrary and various functions during execution.\n\n- `interactive` - true/false - en/dis-ables interactive promps and features requiring a TTY/PTY\n- `strict_mode` - true/false - en/dis-ables shell options to stop and/or exit on errors and undefined variables\n- `verbosity`   -    0-10    - Sets the verbosity for debug logging, default 0\n\n## Testing\n\nFor testing bash code across multiple versions of bash we highly recommend\nusing the bashtester submodule, you can pull it with this repository by using:\n\n```bash\ngit clone --recurse-submodules https://github.com/sdelements/shtdlib.git\n```\n\nOr if you've already cloned this project you can initialize and pull using:\n\n```bash\ngit submodule init\ngit submodule update --recursive\n```\n\n### Test Examples:\n\n- all supported versions (using docker containers)\n\n    ```bash\n    source shtdlib.sh \u0026\u0026 test_shtdlib\n    ```\n\n- local bash only, no containers\n    ```bash\n    source shtdlib.sh \u0026\u0026 test_shtdlib local\n    ```\n\n- specific bash version(s) and/or local\n    ```bash\n    source shtdlib.sh \u0026\u0026 test_shtdlib 3.2.57 4.4.23 local\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdelements%2Fshtdlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdelements%2Fshtdlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdelements%2Fshtdlib/lists"}