zig run
: Empty string arguments aren't forwarded on Windows
#19236
Labels
bug
Observed behavior contradicts documented or intended behavior
Zig Version
0.12.0-dev.3161+377ecc6af
Steps to Reproduce and Observed Behavior
Running the executable directly works.
Invoking the executable directly from Zig using
std.process.Child.init(&.{ repro_path, "hello", "", "world" }, arena)
also works, so it doesn't appear to be a bug in the argv-to-command line serialization logic.Appears to be a Windows-only bug, people on Discord helped me verify that it works correctly on Linux and macOS.
zig build run
(whererun
is aStep.Run
) is also affected.Expected Behavior
The empty string is passed to the spawned process.
The text was updated successfully, but these errors were encountered: