mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 12:37:49 +00:00
env: fix build on Windows
This commit is contained in:
parent
18b19715f9
commit
ab8c2b021a
1 changed files with 1 additions and 1 deletions
2
src/env/env.rs
vendored
2
src/env/env.rs
vendored
|
@ -110,7 +110,7 @@ fn build_command<'a, 'b>(args: &'a mut Vec<&'b str>) -> (Cow<'b, str>, &'a [&'b
|
|||
args.insert(0, "/d/c");
|
||||
let progname = env::var("ComSpec")
|
||||
.map(Cow::from)
|
||||
.unwrap_or_else(|| Cow::from("cmd"));
|
||||
.unwrap_or_else(|_| Cow::from("cmd"));
|
||||
|
||||
(progname, &args[..])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue