Quantcast
Channel: Active questions tagged fish - Stack Overflow
Viewing all articles
Browse latest Browse all 106

Fish Pipeline Status

$
0
0

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.


Viewing all articles
Browse latest Browse all 106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>