{"id":15042428,"url":"https://github.com/qzb/sh-semver","last_synced_at":"2026-03-07T08:03:22.607Z","repository":{"id":19635179,"uuid":"22887201","full_name":"qzb/sh-semver","owner":"qzb","description":"Bash implementation of semantic versioning","archived":false,"fork":false,"pushed_at":"2021-08-12T14:21:28.000Z","size":60,"stargazers_count":29,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-26T00:28:47.464Z","etag":null,"topics":["bash","semver"],"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/qzb.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":"2014-08-12T18:07:45.000Z","updated_at":"2024-08-13T17:57:40.000Z","dependencies_parsed_at":"2022-08-24T14:02:15.489Z","dependency_job_id":null,"html_url":"https://github.com/qzb/sh-semver","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/qzb/sh-semver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qzb%2Fsh-semver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qzb%2Fsh-semver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qzb%2Fsh-semver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qzb%2Fsh-semver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qzb","download_url":"https://codeload.github.com/qzb/sh-semver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qzb%2Fsh-semver/sbom","scorecard":{"id":756658,"data":{"date":"2025-08-11","repo":{"name":"github.com/qzb/sh-semver","commit":"2ac2437258a85b83358e3c3cf81ffaddba59ea19"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":7,"reason":"Found 7/10 approved changesets -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T21:52:44.944Z","repository_id":19635179,"created_at":"2025-08-22T21:52:44.944Z","updated_at":"2025-08-22T21:52:44.944Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bash","semver"],"created_at":"2024-09-24T20:47:17.667Z","updated_at":"2026-03-07T08:03:22.582Z","avatar_url":"https://github.com/qzb.png","language":"Shell","funding_links":[],"categories":["Shell Script Development"],"sub_categories":["Directory Navigation"],"readme":"# sh-semver\n\n[![NPM Version][npm-image]][npm-url]\n[![Build][travis-image]][travis-url]\n\nThe semantic versioner for Bourne Shell.\n\n## CLI\n\n```\nsemver.sh [-r \u003crule\u003e] [\u003cversion\u003e... ]\n```\n\nGiven a rule and one or many versions, it will return all of the provided versions that satisfy the rule, in sorted order, one per line.\n\nIf versions are omitted from the command line, it will read them from STDIN.\n\nIf the rule is omitted from the command line, it will simply sort all the provided versions.\n\n## Ranges\n\nEvery *version range* contains one or more *sets of comparators*. To satisfy *version range* version must satisfies all *comparators* from at least one set. Sets are separated with two vertical bars ``||``. Rules in each set are separated with whitespaces. Empty set are treated as wildcard comparator ``*``.\n\n### Basic comparators\nThere are five basic comparators:\n\n* Equal to ``=A.B.C`` (``=`` operator is optional, it may be provided but usually it isn't).\n* Less than ``\u003cA.B.C``\n* Greater than ``\u003eA.B.C``\n* Less than or equal to ``\u003c=A.B.C``\n* Greater than or equal to ``\u003e=A.B.C``\n\n### Advanced comparators\n\n##### Wildcards ``*`` ``*.*`` ``*.*.*``\nWildcard comparators can be satisfied by any version, even prerelease one.\n\nInstead of ``*`` character can be used ``x`` or ``X``.\n\n##### Wildcard ranges ``A.*.*`` ``A.B.*``\nWildcard ranges can be satisfied when only part of version is matching. In contrast to wildcards, wildcard ranges cannot be satisfied by prerelease versions.\n\n* ``A.*.*`` is satisfied when majors are the same,\n* ``A.B.*`` is satisfied when majors and minors are the same.\n\nThe special character (``*``, ``x`` or ``X``) is optional.\n\n###### Examples\n* ``1.2`` := ``\u003e=1.2.0 \u003c1.3.0``\n* ``5.*.*`` := ``\u003e=5.0.0 \u003c6.0.0``\n\n##### Caret ranges ``^A.B.C``\nMatches to compatible versions.\n\n###### Examples\n* ``^1.2.3`` := ``\u003e=1.2.3 \u003c2.0.0``\n* ``^0.1.2`` := ``\u003e=0.1.2 \u003c0.2.0``\n* ``^0.0.1`` := ``\u003e=0.0.1 \u003c0.0.2``\n\n##### Tilde ranges ``~A.B.C`` ``~A.B`` ``~A``\nIf patch version is specified tilde ranges matches to all greater or equal versions with the same minor version. Otherwise is equivalent of ``A.B.*`` when minor version is specified or ``A.*.*`` when not.\n\n##### Hyphen ranges ``A.B.C - X.Y.Z``\nHyphen range ``A.B.C - X.Y.Z`` equivalent of ``\u003e=A.B.C \u003c=X.Y.Z``.\n\n### Prerelease versions\nPrerelease versions can satisfy comparators set only when have the same minor major and patch numbers as at least one of comparators.\n\n\n[npm-image]: https://img.shields.io/npm/v/sh-semver.svg\n[npm-url]: https://npmjs.org/package/sh-semver.sh\n[travis-image]: https://travis-ci.org/qzb/sh-semver.svg?branch=master\n[travis-url]: https://travis-ci.org/qzb/sh-semver\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqzb%2Fsh-semver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqzb%2Fsh-semver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqzb%2Fsh-semver/lists"}