import std.stdio;
import std.process;
void main() {
string output = shell("ls -l");
write(output);
}
Compile it with the D2.0 dmd compiler:
... and the run the compiled binary:
(See also
this question on StackOverflow, where I documented this first).
Recent comments
28 weeks 4 days ago
29 weeks 2 days ago
29 weeks 2 days ago
43 weeks 3 days ago
1 year 8 weeks ago
1 year 8 weeks ago
1 year 8 weeks ago
1 year 13 weeks ago
1 year 17 weeks ago
1 year 29 weeks ago