{"id":21392060,"url":"https://github.com/montag451/tidysh","last_synced_at":"2025-07-24T22:14:18.153Z","repository":{"id":149129674,"uuid":"258509093","full_name":"montag451/tidysh","owner":"montag451","description":"A small shell library to improve error handling in shell scripts","archived":false,"fork":false,"pushed_at":"2021-04-03T12:49:49.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T01:14:08.892Z","etag":null,"topics":["error-handling","exception-handling","posix-sh","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/montag451.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-24T12:41:20.000Z","updated_at":"2022-01-09T14:38:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"bafa9e2c-5bf6-4565-8ab8-61c68600d427","html_url":"https://github.com/montag451/tidysh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montag451%2Ftidysh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montag451%2Ftidysh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montag451%2Ftidysh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montag451%2Ftidysh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/montag451","download_url":"https://codeload.github.com/montag451/tidysh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243874067,"owners_count":20361753,"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":["error-handling","exception-handling","posix-sh","shell"],"created_at":"2024-11-22T13:39:00.147Z","updated_at":"2025-03-16T13:26:45.007Z","avatar_url":"https://github.com/montag451.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Motivation\n==========\n\nWhen writing shell scripts, the need to have a more sophisticated\nerror handling mechanism arise quite often. Most shells provide the\n`trap` builtin to install a handler for a specific signal but when you\nneed to stack up multiple handlers the use of `trap` is\ncumbersome. This small shell library tries to address this issue and\nprovide a kind of exception handling mechanism which should improve\nthe way you deal with errors in your shell scripts. This library is\nnot tied with a particular shell and can be used with any POSIX shell.\n\nInstallation\n============\n\nTo install this shell library, type the following commands:\n\n```sh\ngit clone https://github.com/montag451/tidysh.git tidysh\ncd tidysh\nmkdir build\ncd build\ncmake ../\nmake install\n```\n\nIt will install the library in `/usr/local/lib/tidysh`. If you want to\nchange the install directory you can set the variables\n`CMAKE_INSTALL_PREFIX` and/or `CMAKE_INSTALL_LIBDIR`.\n\nYou can also create RPM and DEB packages using the command `make package`.\n\nUsage\n=====\n\nTo use this library, source it in your shell script. Four functions\nshould now be available in your script:\n\n  * `tidy_push`\n  * `tidy_pop`\n  * `tidy_cancel`\n  * `tidy_quote`\n\nThese functions are documented in the source code of the library.\n\nExamples\n========\n\nSee the `examples` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontag451%2Ftidysh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmontag451%2Ftidysh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontag451%2Ftidysh/lists"}