{"full_name":"mvdan/sh","owner":"mvdan","name":"sh","shard":"1","url":"https://github.com/mvdan/sh","description":"A shell parser, formatter, and interpreter with bash and zsh support; includes shfmt","homepage":"https://pkg.go.dev/mvdan.cc/sh/v3","topics":["go","parser","shell","bash","formatter","posix","mksh","interpreter","beautify","shfmt","zsh"],"tag_pages":["bash","formatter","go","parser","posix","shell","zsh"],"language":"Go","license":"BSD-3-Clause","avatar":"https://avatars.githubusercontent.com/u/3576549?u=a35e1d2c507966ca8d1107301b3853db2bd87a7d&v=4","created_at":"2016-01-16T08:39:09Z","pushed_at":"2026-11-15T14:36:12Z","metrics":{"stars":9199,"forks":464,"watchers":57,"issues":1004,"prs":414,"releases":55,"issues_open":55,"issues_closed":949,"prs_open":1,"prs_closed":112,"prs_merged":301,"discussions":31},"growth":{"day":{"stars":1,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[9188,9192,9194,9194,9195,9198,9199],"forks":[465,463,463,463,463,464,464],"watchers":[null,57,57,57,57,57,57],"issues_open":[null,66,66,66,66,61,55],"prs_open":[null,1,1,1,1,1,1]},"boards":{},"same_owner":[],"issues":[{"number":93,"title":"interp: consider adding some coreutils as builtins","comments":27,"created_at":"2017-04-25T13:59:56Z"},{"number":80,"title":"proposal: add option to wrap lines to fit in N columns on a best-effort basis","comments":20,"created_at":"2017-04-12T21:20:17Z"},{"number":498,"title":"v4: syntax: keep alignment of command-continuing backslashes","comments":14,"created_at":"2020-02-10T18:10:44Z"},{"number":772,"title":"interp: unexpected array variable and subshell interaction","comments":12,"created_at":"2021-12-08T20:12:18Z"},{"number":658,"title":"v4: remove syntax.KeepPadding and shfmt -kp","comments":12,"created_at":"2021-01-25T12:54:19Z"},{"number":544,"title":"v4: consider redesigning SpaceRedirects (-sr) into an option to space all operators and delimiters","comments":10,"created_at":"2020-04-18T16:22:29Z"},{"number":1151,"title":"feat: shfmt detects shell type from inline '# shellcheck shell=...'","comments":9,"created_at":"2025-04-09T07:25:21Z"},{"number":558,"title":"syntax: ambiguity when parsing globs in indexed array elements","comments":9,"created_at":"2020-05-03T03:07:05Z"}],"discussions":[{"number":1424,"title":"Color?","comments":1,"category":"Q&A","created_at":"2026-09-25T03:05:42Z"},{"number":1344,"title":"aligning FORCE_COLOR with other CLI tools","comments":1,"category":"Ideas","created_at":"2026-06-09T02:57:48Z"},{"number":1286,"title":"Changed formatting of array index calculation in 3.13.0: intended or not?","comments":2,"category":"Q&A","created_at":"2026-03-11T06:33:46Z"},{"number":1191,"title":"Open PR for a `sh` Spack package","comments":0,"category":"Show and tell","created_at":"2025-08-31T22:56:20Z"},{"number":1181,"title":"EditorConfig -- seems to not be used","comments":2,"category":"Q&A","created_at":"2025-07-31T22:12:44Z"},{"number":1166,"title":"Release schedule","comments":2,"category":"General","created_at":"2025-06-09T21:28:23Z"},{"number":1163,"title":"What is recommended to break this long line?","comments":0,"category":"Q&A","created_at":"2025-05-28T08:00:59Z"},{"number":1155,"title":"Skipping formatting per-line","comments":0,"category":"General","created_at":"2025-04-16T16:11:33Z"}],"latest_release":{"name":"","tag":"v3.14.1","published_at":"2026-09-06T15:02:21Z","body":"- **syntax**\r\n  - Fix the indentation of heredocs nested inside command substitutions - #1403\r\n  - Keep literal tabs in `<<-` heredoc bodies rather than replacing them with spaces\r\n  - Don't indent heredocs without dashes nested in `<<-` ones, whose output no longer parsed\r\n  - Zsh: don't drop the prefix in short forms like `$#\"$foo\"` and `$+\"$foo\"` - #1405\r\n- **interp**\r\n  - Fix the build on 32-bit FreeBSD and NetBSD\r\n- **expand**\r\n  - Don't let escaped characters such as `\\*` act as glob metacharacters\r\n- **pattern**\r\n  - Treat unclosed extended operator groups like `@(a` as literals, avoiding a panic\r\n\r\nConsider [becoming a sponsor](https://github.com/sponsors/mvdan) if you benefit from the work that went into this release!\r\n\r\nBinaries built on `go version go1.27.1 linux/amd64` with:\r\n\r\n\tCGO_ENABLED=0 go build -trimpath -ldflags=\"-w -s\"","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}