┌──────────────────────────────────────────────────┬─────────────┬───────────────────┐
│ Pattern │ Occurrences │ Impact │
├──────────────────────────────────────────────────┼─────────────┼───────────────────┤
│ for item in $(command) (subshell in loop) │ 20+ │ O(n) subshells │
├──────────────────────────────────────────────────┼─────────────┼───────────────────┤
│ External commands in hot paths (tput, which, ps) │ 50+ │ 10-50ms each fork │
├──────────────────────────────────────────────────┼─────────────┼───────────────────┤
│ eval "echo \${${var}...}" │ 30+ │ Double subshell │
└──────────────────────────────────────────────────┴─────────────┴───────────────────┘