You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
print masks exit codes for external commands #19227
I have done a basic search of the issue tracker to find any existing issues that are similar.
I have checked that my version is at least the latest stable release available via my installation method.
Describe the bug
in a pipeline, the errors should be counted as errors even if the command erroring is not the last in the pipeline.
With external commands and print, that does not seem to be the case
open /non_existant | print # an error, exit code 1^cat /non_existant |print# No errors, exit code 0
If this worked properly, it would be very useful, as it would be the best way to redirect an external command's stdout to stderr, like so ^echo hello | print -e, but unfortunetelly, this masks errors
How to reproduce
open /non_existant | print # an error, exit code 1^cat /non_existant |print# No errors, exit code 0
Activity
fix(print): surface external failures instead of masking exit code (n…