How do I merge child process stdout and stderr?
The following does not work (since ownership cannot be shared between stdout and stderr)...
let pipe = Stdio::piped();
let prog = Command::new("prog")
.stdout(pipe)
.stderr(pipe)
.spawn()
.expect("failed to execute prog");
So in other words what is the rust equivalent of 2>&1 on the shell?