pub fn apply_parsed_env(cmd: &mut Command, env: &BTreeMap<String, String>)Expand description
Hand the parsed spec’s variables to a command we are about to spawn.
On Windows this is not just Command::env. The executable search order there puts the
system directory ahead of PATH, so bash resolves to C:\Windows\System32\bash.exe —
the WSL launcher — on any machine with WSL installed, whatever else is on PATH. WSL only
carries a Win32 variable across the boundary if WSLENV names it, so without this the
script runs with every usage_* variable unset, silently and with no error.