set_pipefail

Function set_pipefail 

Source
pub fn set_pipefail(enable: bool)
Expand description

Set pipefail or not, true by default.

This is global, and affects all threads. To set it for the current thread only, use ScopedPipefail.

Setting environment variable CMD_LIB_PIPEFAIL=0|1 has the same effect, but the environment variable is only checked once at an unspecified time, so the only reliable way to do that is when the program is first started.