Skip to content

fix(bash): say when a SIGPIPE normalized an exit status away - #287

Open
zxgshawn wants to merge 1 commit into
mainfrom
fix/bash-sigpipe-false-pass
Open

fix(bash): say when a SIGPIPE normalized an exit status away#287
zxgshawn wants to merge 1 commit into
mainfrom
fix/bash-sigpipe-false-pass

Conversation

@zxgshawn

@zxgshawn zxgshawn commented Aug 8, 2026

Copy link
Copy Markdown
Member

Closes #281.

cargo fmt --check | head -20 exits 141, which the bash tool normalizes to 0 so that everyday ls | head doesn't read as a failure. The cost is that a check which found a diff and a check which found nothing arrive identically, and an agent that pipes one into head reports clean and pushes.

The normalization stays. What's new is that a discarded status says so, on stderr, so the pass is visibly unverified. A pipeline that never hit SIGPIPE is unchanged and silent.

@zxgshawn
zxgshawn force-pushed the fix/bash-sigpipe-false-pass branch from baf8c3a to 67f1486 Compare August 8, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bash: SIGPIPE normalization turns cmd --check | head into a silent false pass

1 participant