-
Notifications
You must be signed in to change notification settings - Fork 162
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
(grcat) exit code zero despite previous pipe command returning non-zero #53
Comments
As a workaround, you can use $PIPESTATUS:
E.g.:
|
Thanks for the suggestion. Feel free to close the ticket. |
This is actually a valid concern - however, note that In addition to |
Pipefail also works in
|
I would suggest you maintain 100% compatibility with In this manner, it's a drop-in replacement and scripts do not need to be reconfigured. |
(I know grcat isn't meant for public use but like i said in another ticket it's really convenient; if this is unsupported I'm just putting this ticket out there in case grcat becomes supported)
When I run:
and the compilation fails, I get exit code zero. This makes it a bit difficult to run a script that checks whether the compilation succeeded before running the next command. For example, I often run this:
and when
deploy_my_app.sh
prints loads of stuff and I'm not looking at my screen I don't see the failed mvn command, so start tearing my hair out wondering my my app isn't working.The text was updated successfully, but these errors were encountered: