module test;
import std::os::process;
import std::io;
fn void main()
{
String command = env::WIN32 ? "dir" : "ls";
Process x = process::spawn({ command })!!;
x.join()!!;
InStream stream = &&x.stdout();
while (try char b = stream.read_byte())
{
io::printf("%c", b);
}
io::printn("...Done");
}