Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interp: support combining pipefail and errexit #990

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

mvdan
Copy link
Owner

@mvdan mvdan commented Apr 16, 2023

(see commit message)

Fixes #870.

We supported both options separately,
but when used together, a command like

    false | true

would fail to exit the shell properly.

Add tests and fix the bug.

Fixes #870.
Copy link
Collaborator

@andreynering andreynering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mvdan mvdan merged commit 1e9de6a into master Apr 17, 2023
@mvdan mvdan deleted the 870-interp-pipefail-errexit branch May 23, 2023 08:10
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.

interp: different behavior of pipefail for multiline scripts
2 participants