shfmt VS sh

Compare shfmt vs sh and see what are their differences.

shfmt

A shell formatter (sh/bash/mksh) (by patrickvane)

sh

A shell parser, formatter, and interpreter with bash support; includes shfmt (by mvdan)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
shfmt sh
2 21
84 6,751
- -
0.0 7.8
27 days ago 5 days ago
Go Go
BSD 3-clause "New" or "Revised" License BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

shfmt

Posts with mentions or reviews of shfmt. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-21.
  • Bash Defaults Not Working Like Atom?
    1 project | /r/pulsaredit | 21 Feb 2023
    Format-Shell is working, but I had to install shfmt manually: https://github.com/patrickvane/shfmt/releases/tag/master. Only one issue is that they don't offer native MacOSX for Silicon, but maybe that's not an issue
  • similar to shellcheck?
    5 projects | /r/bash | 21 Apr 2022
    There are also: - shfmt - sh - bash language server - bashate

sh

Posts with mentions or reviews of sh. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-21.

What are some alternatives?

When comparing shfmt and sh you can also consider the following projects:

ShellCheck - ShellCheck, a static analysis tool for shell scripts

bat - A cat(1) clone with wings.

shellharden - The corrective bash syntax highlighter

neoformat - :sparkles: A (Neo)vim plugin for formatting code.

go-pkg-xmlx

ale - Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support

go-pkg-rss

vscode-bash-debug - Bash shell debugger extension for VSCode (based on bashdb)

inject

bash-language-server - A language server for Bash

toml - TOML parser for Golang with reflection.