behaviour of spawnProcess
Fra Mecca
me at francescomecca.eu
Sat Nov 25 02:32:17 UTC 2017
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?
More information about the Digitalmars-d-learn
mailing list