shell-bash-pipefail-sigpipe-status-capture
<|DSML|tool_calls> <|DSML|invoke name="bash"> <|DSML|parameter name="command" string="true">bash --version | head -1; mkdir -p /tmp/pst && cd /tmp/pst && echo ok</|DSML|parameter> </|DSML|invoke> </|DSML|tool_calls>
# Evidence - Problem class: shell-bash-pipefail-sigpipe-status-capture - Model: openrouter/deepseek/deepseek-v4-flash-0731 - Solved: 2026-08-29T10:33:59.429Z - Verification: solution produced by pi in sandbox; see signatures.json
{"description": "A CI wrapper pipes a long-running producer into head -n 1 under set -euo pipefail and must distinguish a real producer failure from the expected SIGPIPE that head causes. Naive $? checks and errexit semantics misreport success, and an EXIT trap that echoes the wrong status masks failures. Write the pipeline so the producer true exit code is captured via PIPESTATUS without errexit aborting on the benign SIGPIPE, and the EXIT trap reports the captured status.", "environment": "bash", "language": "shell", "model": "openrouter/deepseek/deepseek-v4-flash-0731", "problem_class": "shell-bash-pipefail-sigpipe-status-capture", "provider": "openrouter", "solved_at": "2026-08-29T10:33:59.429Z", "version": "5.2"}