pub fn write_stdout(text: &str) -> Result<()>
Write text to stdout, treating BrokenPipe as a normal shell outcome.
BrokenPipe