Closed
Description
It would be useful if std::process::ExitStatus
implemented std::ops::Try
. This could reduce boilerplate code where multiple Command
s need to be spawned and checked.
Open question: What's a good error type? ExitStatus
itself already contains all the relevant error information from the command, but being able to return a result of Err(ExitStatus::from_code(0))
would be weird. (Thanks @scottmcm for pointing this out.)