Re: How do I get the output of the time bash command?

2021-01-27 Thread Anthony via Digitalmars-d-learn
On Wednesday, 27 January 2021 at 09:58:18 UTC, Arafel wrote: On 27/1/21 10:35, Anthony wrote: I'm trying to read the timed output of a pipeShell command but it only results in empty output. Does anyone know why this is? ```     auto p = pipeShell("time ls");     foreach(str;

Re: How do I get the output of the time bash command?

2021-01-27 Thread bachmeier via Digitalmars-d-learn
On Wednesday, 27 January 2021 at 09:58:25 UTC, Marcone wrote: On Wednesday, 27 January 2021 at 09:35:21 UTC, Anthony wrote: I'm trying to read the timed output of a pipeShell command but it only results in empty output. Does anyone know why this is? ``` auto p = pipeShell("time ls");

Re: How do I get the output of the time bash command?

2021-01-27 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Wednesday, 27 January 2021 at 09:35:21 UTC, Anthony wrote: I'm trying to read the timed output of a pipeShell command but it only results in empty output. Does anyone know why this is? ``` auto p = pipeShell("time ls"); foreach(str; p.stdout.byLine) {

Re: How do I get the output of the time bash command?

2021-01-27 Thread Arafel via Digitalmars-d-learn
On 27/1/21 10:35, Anthony wrote: I'm trying to read the timed output of a pipeShell command but it only results in empty output. Does anyone know why this is? ```     auto p = pipeShell("time ls");     foreach(str; p.stdout.byLine) {     writefln("%s",str);     } ``` I'm not

Re: How do I get the output of the time bash command?

2021-01-27 Thread Marcone via Digitalmars-d-learn
On Wednesday, 27 January 2021 at 09:35:21 UTC, Anthony wrote: I'm trying to read the timed output of a pipeShell command but it only results in empty output. Does anyone know why this is? ``` auto p = pipeShell("time ls"); foreach(str; p.stdout.byLine) {