Bash Pitfalls And Bats

Use when writing or reviewing Bash scripts beyond the failure-default basics, or tests for them with bats: the shell traps that lose a variable or an exit status silently (pipes into loops, local with a command substitution, arithmetic exit status, string comparison, globs, word splitting, argument lists) and the bats-core behaviours that make a test green while asserting nothing.

techmefr Updated

File contents

techmefr/mentis commit 442629bdb4

Frequently asked questions

npx get-skill add techmefr/bash-pitfalls-and-bats