From 52b882838f7a7760943f9630f76d6cc4d5c0dd23 Mon Sep 17 00:00:00 2001 From: Francesco Mecca Date: Wed, 4 Jul 2018 14:42:59 +0200 Subject: [PATCH] linecopy to avoid corruption --- asino.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asino.d b/asino.d index fe5f766..dffc13d 100644 --- a/asino.d +++ b/asino.d @@ -52,7 +52,7 @@ main (string[] args) string[] toProcess = void; if(isaTTY()){ // read stdin, ignore cli args - toProcess = to!(string[])(stdin.byLine().array()); + toProcess = to!(string[])(File("/dev/stdin").byLineCopy.array()); } else { toProcess = args[1 .. $]; // remove program name }