pipe-tail-captures-tail-exit-not-script-exit
When verifying a script’s exit code by piping output through | tail, the captured $? is tail’s exit code, not the script’s. This caused a false C2 finding claiming lint scripts exited 0 on failure — they actually exited correctly. Always run scripts directly and capture $? without pipes when verifying exit behavior.
Related
- piped-tail-masks-script-exit-code
- pipe-tail-corrupts-exit-code-verification
- 2026-04-04-oracle-001-self-architecture-analysis
- parallel-critic-agents-require-spot-verification
- hypervisor-steal-time-misread-as-process-cpu
- pipe-tail-masks-script-exit-code
- tail-pipe-corrupts-exit-code-verification
- pipe-through-tail-masks-script-exit-code
- piped-command-exit-code-masks-primary-script-result
- pipe-through-tail-captures-tails-exit-code-not-scripts