pipefail.right 290 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Default:
  2. true | true:
  3. 0
  4. 1
  5. true | false:
  6. 1
  7. 0
  8. false | true:
  9. 0
  10. 1
  11. exit 2 | exit 3 | exit 4:
  12. 4
  13. 0
  14. Pipefail on:
  15. true | true:
  16. 0
  17. 1
  18. true | false:
  19. 1
  20. 0
  21. false | true:
  22. 1
  23. 0
  24. exit 2 | exit 3 | exit 4:
  25. 4
  26. 0
  27. Pipefail off:
  28. true | true:
  29. 0
  30. 1
  31. true | false:
  32. 1
  33. 0
  34. false | true:
  35. 0
  36. 1
  37. exit 2 | exit 3 | exit 4:
  38. 4
  39. 0
  40. Done