pub fn sh_with_env(
script: &str,
env: Option<&HashMap<String, String>>,
) -> Result<String>Expand description
sh, with extra environment variables set on top of the inherited environment.
For a caller that parses against an environment other than its own — a task runner
handing crate::Parser::with_env a task’s variables — so a script it runs sees the same
variables the parse does. They are added to the process environment, not substituted for
it: a map without PATH should not leave the script unable to find anything.