-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
Non-Zero Exit Status Does Not Propagate using Exec().Filter() #148
Comments
This was a good find, @jesselang: there are (at least) two distinct bugs here:
Also, because the So your program sometimes printed:
and sometimes:
depending on the local cosmic ray environment. 828fe5f fixes the first issue; d5e838d fixes the second. With, and only with, both bugs fixed, your program now reliably reports |
Wow, seems I tripped over more than I realized! Yes, I am able to confirm that |
From #146:
An undesired side effect of using
Exec().Filter*()
seems to be that a non-zero exit status from the program no longer propagates. Here's an example:Output:
Is this expected? I'd prefer to pass the exit status to the caller of this script. Thanks!
The text was updated successfully, but these errors were encountered: