macOS
brew install shellhardenlocal Homebrew formula metadata
sudo port install shellhardenMacPorts ports tree · devel/shellharden/Portfile · source: api.github.com
brew / rank 6802
Bash syntax highlighter that encourages/fixes variables quoting. Version 4.3.2 via Homebrew; verified 2026-09-13. Also installable with nix: nix profile install nixpkgs#shellharden.
install
brew install shellhardenlocal Homebrew formula metadata
sudo port install shellhardenMacPorts ports tree · devel/shellharden/Portfile · source: api.github.com
sudo apk add shellhardenAlpine Linux edge package indexes · shellharden · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#shellhardennixpkgs package indexes · pkgs/by-name/sh/shellharden/package.nix · source: api.github.com
sudo pacman -S shellhardenArch Linux sync databases · shellharden · source: geo.mirror.pkgbuild.com
overview
Bash syntax highlighter that encourages/fixes variables quoting
history
Shellharden highlights Bash syntax and proposes or applies changes intended to improve quoting and reduce reliance on unsafe word splitting or glob expansion.
The tool was originally known as Naziquote and was later renamed Shellharden. It developed into a Rust-based corrective Bash syntax highlighter focused chiefly on quoting and on semi-automating changes associated with ShellCheck guidance.
Shellharden is distributed as an official Rust crate and has also been packaged by multiple operating-system ecosystems, including Homebrew, Alpine, Arch, MacPorts, and Nix according to the supplied package metadata.
The default mode behaves like cat with syntax highlighting and suggested additions or removals. Users may request transformation, but the maintainer explicitly requires human review because scripts can intentionally depend on unquoted shell behavior. Shellharden has no documented persistent configuration or credential files.
Shellharden occupies an unusual niche between a linter, syntax highlighter, and source-to-source fixer. Package maintainers value it because it can turn quoting advice into reviewable edits while retaining a deliberately conservative warning against blind transformation.
security posture
No matching local secret-handling manifest was found for shellharden. Package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
shellharden | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/anordal/shellharden
install metadata
| Package key | brew:shellharden |
|---|---|
| Version | 4.3.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/shellharden |
| Homepage | https://github.com/anordal/shellharden |
| Repository | https://github.com/anordal/shellharden |
| License | MPL-2.0 |
| Source archive | https://github.com/anordal/shellharden/archive/refs/tags/v4.3.2.tar.gz |
| Last updated | 2026-09-13T09:36:45Z |
| Pulse | updated |
| Build dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | shellharden |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
shellharden
nix profile install nixpkgs#shellhardenshellharden 4.3.1-r0
The corrective bash syntax highlighter
https://github.com/anordal/shellharden
sudo apk add shellhardenshellharden-doc 4.3.1-r0
The corrective bash syntax highlighter (documentation)
https://github.com/anordal/shellharden
sudo apk add shellharden-docshellharden 4.3.2-1
Bash linter and syntax highlighter
https://github.com/anordal/shellharden
sudo pacman -S shellhardenshellharden
sudo port install shellhardensource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.