Bash Hardening

Deep bash correctness — `set -euo pipefail` traps, IFS/word-splitting, trap inheritance, process substitution, array gotchas, version-gated features, ShellCheck "looks right but isn't" patterns. Load when writing or hardening non-trivial bash scripts (installers, CI, unattended ops). Skip for basic if/while/for, one-shot interactive commands, or zsh/fish/POSIX-sh work. Triggers on: "set -e not triggering", "pipefail", "trap ERR", "PIPESTATUS", "macOS bash 3.2", "shellcheck SC2086", "harden bash script", "robust bash".

pvillega Updated

File contents

pvillega/claude-templates/tree/main/plugins/ct/skills/bash-hardening commit 16d5aeb316

Frequently asked questions

npx skillmds@latest add pvillega/bash-hardening