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?