std::process::Command::env_remove
causes Command behave differently on Windows
#90515
Labels
C-bug
Category: This is a bug.
With the following code:
With this setup:
I expected to see this happen:
The valid executable to run in this case are
test.foo
,test.foo.exe
,test.foo.cmd
, .... Since none of these exist, it should give me an error. This is also the behavior when theenv_remove
line is commented out. Like this:Instead, this happened:
test.exe
is incorrectly being spawned.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: