nu_experimental/options/
pipefail.rs1use crate::*;
2
3pub static PIPE_FAIL: ExperimentalOption = ExperimentalOption::new(&PipeFail);
9
10struct PipeFail;
13
14impl ExperimentalOptionMarker for PipeFail {
15 const IDENTIFIER: &'static str = "pipefail";
16 const DESCRIPTION: &'static str = "\
17 If an external command fails within a pipeline, $env.LAST_EXIT_CODE is set \
18 to the exit code of rightmost command which failed.";
19 const STATUS: Status = Status::OptIn;
20 const SINCE: Version = (0, 107, 1);
21 const ISSUE: u32 = 16760;
22}