Login
From:
til.codeinthehole.com
(Uncensored)
subscribe
TIL About Bash's '$PIPESTATUS' variable — David Winterbottom
https://til.codeinthehole.com/posts/about-bashs-pipestatus-variable/
links
backlinks
Roast topics
Find topics
Find it!
Problem: you have a pipeline like so: $cmd1 | $cmd2 | $cmd3 and you want to detect if $cmd1 exits with a exit code greater than 1. — can be read in 2 minutes