deprecation message std.process.system=>executeShell often not what's needed
Lars T. Kyllingstad via Digitalmars-d
digitalmars-d at puremagic.com
Tue Aug 12 23:12:44 PDT 2014
On Wednesday, 13 August 2014 at 01:58:15 UTC, Timothee Cour via
Digitalmars-d wrote:
> On Tue, Aug 12, 2014 at 3:41 PM, Vladimir Panteleev via
> Digitalmars-d <
> digitalmars-d at puremagic.com> wrote:
>
>> And why `cast(Redirect)0`? It's not necessary.
>
>
> it is, otherwise it defaults to Redirect.all which has
> different semantics
> than 'system' (so it's not a replacement of it).
> Btw, I don't like the cast either; shouldn't there be a
> 'none=0' value in
> the enum?
Not necessary, because pipeShell("foo", Redirect.none) would be
equivalent to spawnShell("foo").
More information about the Digitalmars-d
mailing list