In fish:
if false | true | true echo "Fish thinks OK because of last status"else # But I... echo "Need the entire pipeline to be true"end
Bash has $PIPESTATUS.How does one test the integrity of a pipeline in Fish?
To clarify...I'm using true and false in the example pipeline as an exampleof a pipeline which last component succeeds.It's not meant to be a boolean statement.Normally, if any component of a pipeline fails,one would consider the pipeline as having failed.