1 2 3 4 5 6 7 8 9 10 11 12
/// Returns the shell executable and flag for running a command string on the current platform. #[must_use] pub(crate) fn shell_command() -> (&'static str, &'static str) { #[cfg(unix)] { ("sh", "-c") } #[cfg(windows)] { ("cmd.exe", "/C") } }