<div dir="ltr">The deprecation message in 2.066(rc): 'Deprecation: function std.process.system is deprecated - Please use executeShell instead' is often not what user wants.<div><br><div>The behavior of the deprecated std.process should most closely be:</div>
</div><div><br></div><div><div>int systemNew(in char[] args){</div><div><span class="" style="white-space:pre">       </span>auto pipes = pipeShell(args, cast(Redirect)0);</div><div><span class="" style="white-space:pre">     </span>return wait(pipes.pid);</div>
<div>}</div></div><div><br></div><div>which could be a function in std.process if we deprecate std.process.system (possibly with a few extra parameters such as environment etc).</div><div><br></div><div>Indeed, system doesn't capture output (which could potentially require lots of memory), and doesn't wait until completion, unlike executeShell. </div>
<div>To make a user's code upgrade from std.process, he most likely will want something like systemNew instead.</div><div><br></div><div><br></div></div>