pipe-through-tail-masks-script-exit-code
When verifying a script’s exit code by piping its output through tail (e.g., python3 script.py | tail -20; echo $?), $? captures tail’s exit code, not the script’s. This caused a false critic finding that frontend-integrity-lint.py silently exits 0 on failure — it actually exits 1 correctly. Always run scripts directly without piping to verify their exit codes.
Related
- piped-tail-masks-script-exit-code
- pipe-tail-corrupts-exit-code-verification
- pipe-tail-captures-tail-exit-not-script-exit
- tail-pipe-corrupts-exit-code-verification
- pipe-tail-masks-script-exit-code
- piped-command-exit-code-masks-primary-script-result
- pipe-through-tail-captures-tails-exit-code-not-scripts
- makefile-awk-help-regex-excludes-digit-targets