{"id":13395517,"url":"https://github.com/mjambon/reasonable-shell-script","last_synced_at":"2025-04-30T10:05:24.712Z","repository":{"id":49156658,"uuid":"266637409","full_name":"mjambon/reasonable-shell-script","owner":"mjambon","description":"Because shell scripts don't have to be terrible","archived":false,"fork":false,"pushed_at":"2021-06-25T22:08:41.000Z","size":20,"stargazers_count":62,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-26T15:11:32.245Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mjambon.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":"2020-05-24T22:46:43.000Z","updated_at":"2024-05-18T12:45:02.000Z","dependencies_parsed_at":"2022-08-25T20:20:40.012Z","dependency_job_id":null,"html_url":"https://github.com/mjambon/reasonable-shell-script","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/mjambon%2Freasonable-shell-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjambon%2Freasonable-shell-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjambon%2Freasonable-shell-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjambon%2Freasonable-shell-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjambon","download_url":"https://codeload.github.com/mjambon/reasonable-shell-script/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233259405,"owners_count":18649160,"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-07-30T17:02:03.822Z","updated_at":"2025-01-11T01:39:13.013Z","avatar_url":"https://github.com/mjambon.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# A shell script template suitable for most software developers\n\nThis repository contains:\n\n* [`hello`](hello): take this script with you and modify it at leisure.\n* [`hello-teacher`](hello-teacher): is a commented version of `hello`\n  for learning rather than for production code.\n\nShort advice for successful shell scripting:\n\n1. Treat it like any other programming language.\n2. Require a modern version of bash (\u003e= 4.3).\n3. Use `\"$thing\"`, not `$thing` unless you want to split the string.\n4. Learn the [scoping rules](https://twitter.com/mjambon/status/1264718107861413889)\n   and how to use functions.\n5. Learn [how to use arrays](https://www.gnu.org/software/bash/manual/bash.html#Arrays).\n6. Use [ShellCheck](https://shellcheck.net). It's helpful for\n   learning, not just for going after production code.\n\nCommon conventions that minimize annoyances:\n\n* An executable file should have no extension because it's a command name that should be\n  meaningful to the **user**. It's `hello`, not `hello.sh`. The implementation\n  language is irrelevant to the caller of the command.\n* Environment variables should use all-caps e.g. `\"$USER\"`. Ordinary shell\n  variables should use lowercase e.g. `\"$name\"`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjambon%2Freasonable-shell-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjambon%2Freasonable-shell-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjambon%2Freasonable-shell-script/lists"}