Binary package “shfmt” in ubuntu jammy
shell formatter, parser, and interpreter
shfmt is a shell formatter, parser, and interpreter. It supports POSIX Shell,
Bash, and mksh.
.
shfmt's default shell formatting was chosen to be consistent, common, and
predictable. Some aspects of the format can be configured.
.
shfmt can also replace bash -n to check shell scripts for syntax errors and
bashisms. It is more sophisticated and the output is friendly.
.
For Continuous Integration (CI) tests, one can use a variant where formatting
changes are just shown as diffs.
.
Main features:
- List files whose formatting differs from shfmt's.
- Print syntax tree to stdout as a typed JSON. This
can be useful to analyze shell scripts.
- Minify the code to reduce its size.
- Error with a diff when the formatting differs.
- Recursively find all shell files and print the paths.
Source package
Published versions
- shfmt 3.4.3-1 in amd64 (Proposed)
- shfmt 3.4.3-1 in amd64 (Release)
- shfmt 3.4.3-1 in arm64 (Proposed)
- shfmt 3.4.3-1 in arm64 (Release)
- shfmt 3.4.3-1 in armhf (Proposed)
- shfmt 3.4.3-1 in armhf (Release)
- shfmt 3.4.3-1 in ppc64el (Proposed)
- shfmt 3.4.3-1 in ppc64el (Release)
- shfmt 3.4.3-1 in riscv64 (Proposed)
- shfmt 3.4.3-1 in riscv64 (Release)
- shfmt 3.4.3-1 in s390x (Proposed)
- shfmt 3.4.3-1 in s390x (Release)