piped-tail-masks-script-exit-code

When verifying a script’s exit code by piping output through tail (e.g., python3 script.py | tail -5; echo $?), $? captures tail’s exit code, not the script’s. This caused a false C2 finding claiming lint scripts exit 0 on failure when they actually exit 1 correctly. Always check exit codes with direct execution or PIPESTATUS[0].