I have this snipper of code:

auto pid = spawnProcess([exe, j], po.readEnd, pi.writeEnd, std.stdio.stderr);

where exe is the executable name and j is argv[1].

I have noticed that whenever j contains a string with a space in it, spawnprocess splits the string into another argument.

In this way, even if I can use an array to index the arguments, the behaviour is very different from execvp or subprocess.call.

Is this desired? Or is it a bug?

Reply via email to