# Bash Safety

## Tool Selection
Use `rg` (not grep), `fd` (not find), `jq` for JSON. Always exclude `node_modules`, `venv`, etc.

## Syntax Safety
- No semicolons after `$()` -- use `&&` instead
- Use pipes for multiple sed: `sed 's|a||' | sed 's|b||'`
- Avoid `!` in `[[ ]]` -- use positive tests or Python

## Path Handling
- Always `--` before variable paths to prevent flag interpretation
- Quote paths with spaces

## Cross-Platform
Scripts must work on macOS, Linux, and Windows Git Bash.
