mirror of
https://github.com/FraMecca/Buridans_donkey.git
synced 2024-03-20 11:20:15 +01:00
linecopy to avoid corruption
This commit is contained in:
parent
770ce66a7e
commit
52b882838f
1 changed files with 1 additions and 1 deletions
2
asino.d
2
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue