macOS
brew install checkbashismslocal Homebrew formula metadata
安装
brew install checkbashismslocal Homebrew formula metadata
sudo apk add checkbashismsAlpine Linux edge package indexes · checkbashisms · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#checkbashismsnixpkgs package indexes · pkgs/by-name/ch/checkbashisms/package.nix · 来源: api.github.com
sudo pacman -S checkbashismsArch Linux sync databases · checkbashisms · 来源: geo.mirror.pkgbuild.com
sudo zypper install checkbashismsopenSUSE Tumbleweed package metadata · checkbashisms · 来源: download.opensuse.org
概览
Checks for bashisms in shell scripts
历史
checkbashisms is a Debian devscripts command that scans shell scripts for possible bash-specific constructs in scripts intended to run as /bin/sh.
The Debian manpage says checkbashisms was originally written as a shell script by Yann Dirson and rewritten in Perl by Julian Gilbey. The current script says it is based on a Lintian scripts check with copyright ancestry from Richard Braakman, Josip Rodin, and Julian Gilbey.
checkbashisms entered devscripts as a new script in the August 2003 changelog. Because devscripts is a standard Debian developer utility package, the command spread first through Debian and Ubuntu workflows, then through repackaging in Homebrew, Alpine, Nix, Arch, and openSUSE as recorded in the batch input.
Users run `checkbashisms script ...` to warn about constructs not required by POSIX, with options for stricter POSIX checking, force-checking, lint-style editor output, extra context, and early failure.
checkbashisms is package-nerd folklore because it encodes Debian Policy and POSIX shell portability expectations into a tiny linter, catching scripts that accidentally require bash when packaged as /bin/sh-compatible.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
checkbashisms | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:checkbashisms |
|---|---|
| 版本 | 2.26.10 |
| 软件包管理器 | Homebrew |
| 主页 | https://launchpad.net/ubuntu/+source/devscripts/ |
| 最后更新 | 2026-07-06T15:26:54Z |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
checkbashisms
nix profile install nixpkgs#checkbashismscheckbashisms 2.26.5-r1
Debian developer scripts (checkbashisms)
https://tracker.debian.org/pkg/devscripts
sudo apk add checkbashismscheckbashisms 2.26.10-1
Debian script that checks for bashisms
https://tracker.debian.org/pkg/devscripts
sudo pacman -S checkbashismscheckbashisms 2.26.9-1.3
Tool for checking /bin/sh scripts for possible bashisms
https://salsa.debian.org/debian/devscripts
sudo zypper install checkbashisms来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.