Description:
Checks for bashisms in shell scripts
|
|
Type: Formula
|
Latest Version: 2.25.31@0
|
Tracked Since: Dec 17, 2025
|
|
Links:
Homepage |
formulae.brew.sh
|
|
Category: Developer tools
|
|
Tags:
shell
posix
bashism
linting
portability
developer-tools
|
|
Install:
brew install checkbashisms
|
About:
checkbashisms is a tool designed to verify that shell scripts do not contain bash-specific syntax, ensuring they adhere to POSIX standards. It scans scripts for non-portable constructs like specific bashisms and flags them for review. This helps developers create portable scripts that can run on any POSIX-compliant shell, reducing compatibility issues across different Unix-like systems.
|
Key Features:
- Detects common bashisms in shell scripts
- Supports checking scripts with various shell interpreters
- Provides detailed error messages for non-portable code
- Integrates easily into CI/CD pipelines for automated checks
|
Use Cases:
- Validating shell scripts for cross-platform compatibility
- Auditing legacy scripts to ensure portability
- Enforcing coding standards in team projects
|
Alternatives:
-
shellcheck
– shellcheck performs broader static analysis for bugs and style, while checkbashisms focuses specifically on bash vs. POSIX portability.
|
| Detected |
Version |
Rev |
Change |
Commit |
| Dec 16, 2025 10:54pm |
|
0 |
VERSION_BUMP |
b90c23ec |
| Dec 4, 2025 4:57pm |
|
0 |
VERSION_BUMP |
a87a0d1a |
| Jan 14, 2025 4:52pm |
|
0 |
VERSION_BUMP |
e028ea7a |
| Dec 19, 2024 4:52pm |
|
0 |
VERSION_BUMP |
5e6f8c3f |
| Dec 12, 2024 10:53pm |
|
0 |
VERSION_BUMP |
6d05ec8a |
| Nov 12, 2024 9:28pm |
|
0 |
VERSION_BUMP |
0c871849 |
| Oct 31, 2024 9:28pm |
|
0 |
VERSION_BUMP |
f99c0a09 |
| Sep 19, 2024 6:02am |
|
0 |
VERSION_BUMP |
32f4b69e |
| Dec 13, 2023 3:31am |
|
0 |
VERSION_BUMP |
f7a737a8 |
| Mar 16, 2023 4:17pm |
|
0 |
VERSION_BUMP |
e947549e |
| Mar 16, 2023 4:16pm |
|
0 |
VERSION_BUMP |
d518469c |
| Feb 19, 2023 12:13pm |
|
0 |
VERSION_BUMP |
0196111a |
| Feb 19, 2023 12:13pm |
|
0 |
VERSION_BUMP |
06148e33 |
| Feb 11, 2023 8:04am |
|
0 |
VERSION_BUMP |
d9ae9cd3 |
| Feb 11, 2023 8:04am |
|
0 |
VERSION_BUMP |
5b81b1c4 |
| Feb 5, 2023 1:07pm |
|
0 |
VERSION_BUMP |
4fef150d |
| Feb 5, 2023 1:07pm |
|
0 |
VERSION_BUMP |
d4b175e6 |
|