Skip to content

Conversation

@aarvio
Copy link

@aarvio aarvio commented Jan 15, 2026

Previously pretty_format used a conditional with &&. When the caller had pipefail enabled and alt_symbol was empty, the conditional could return a non-zero status and cause the whole pipeline to fail.

This change prevents false failures when running tests with pipefail enabled.

Aki Arvio and others added 2 commits January 15, 2026 07:43
Previously pretty_format used a conditional with &&. When the caller had
pipefail enabled and alt_symbol was empty, the conditional could return
a non-zero status and cause the whole pipeline to fail.

This change prevents false failures when running tests with pipefail
enabled.
@pgrange pgrange merged commit fc682d5 into bash-unit:main Jan 18, 2026
2 checks passed
@pgrange
Copy link
Member

pgrange commented Jan 18, 2026

Thanks @aarvio great fix!

I just updated doc to match with the new test you introduced as doc is automatically checked against the code.

@aarvio
Copy link
Author

aarvio commented Jan 18, 2026

Thanks. And sorry for neglecting test_doc.sh

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.

2 participants