linecopy to avoid corruption

This commit is contained in:
Francesco Mecca 2018-07-04 14:42:59 +02:00
parent 770ce66a7e
commit 52b882838f

View file

@ -52,7 +52,7 @@ main (string[] args)
string[] toProcess = void; string[] toProcess = void;
if(isaTTY()){ if(isaTTY()){
// read stdin, ignore cli args // read stdin, ignore cli args
toProcess = to!(string[])(stdin.byLine().array()); toProcess = to!(string[])(File("/dev/stdin").byLineCopy.array());
} else { } else {
toProcess = args[1 .. $]; // remove program name toProcess = args[1 .. $]; // remove program name
} }