Question

std.process has a nice shell() function.

import std.process;
import std.stdio;

void main()
{
    string Output = shell("ls .");
    writeln("The contents of this directory are:");
    write(Output);
}

It is documented in the Phobos source, but not online. This makes me a little hesitant to use it in real code. Is it experimental and unstable, or are the online docs just falling behind?

Was it helpful?

Solution

The problem is the documentation generation. You can safely use that function, it's not going away.

I'll file this bug.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top