Re: Reading input from piped stdin.

2014-02-14 Thread Thomas
On Friday, 14 February 2014 at 19:12:24 UTC, Steven Schveighoffer wrote: On Fri, 14 Feb 2014 14:05:01 -0500, Thomas wrote: I'm new to D, and I find it quite enjoyable so far. I have however stumbled upon a problem which I can't seem to figure out. I am trying to make a program that creates a

Re: Reading input from piped stdin.

2014-02-14 Thread Steven Schveighoffer
On Fri, 14 Feb 2014 14:16:23 -0500, Thomas wrote: On Friday, 14 February 2014 at 19:08:20 UTC, Adam D. Ruppe wrote: Just a quick look, but I betcha it has to do with buffering. After writing the line to the pipe, call the flush() method on the output pipe and see what happens there. (Pipe

Re: Reading input from piped stdin.

2014-02-14 Thread Thomas
On Friday, 14 February 2014 at 19:08:20 UTC, Adam D. Ruppe wrote: Just a quick look, but I betcha it has to do with buffering. After writing the line to the pipe, call the flush() method on the output pipe and see what happens there. (Pipes buffer differently than regular output so this is a

Re: Reading input from piped stdin.

2014-02-14 Thread Steven Schveighoffer
On Fri, 14 Feb 2014 14:05:01 -0500, Thomas wrote: I'm new to D, and I find it quite enjoyable so far. I have however stumbled upon a problem which I can't seem to figure out. I am trying to make a program that creates a child process, writes something to the child process stdin and reading fro

Re: Reading input from piped stdin.

2014-02-14 Thread nazriel
On Friday, 14 February 2014 at 19:09:06 UTC, nazriel wrote: On Friday, 14 February 2014 at 19:05:02 UTC, Thomas wrote: I'm new to D, and I find it quite enjoyable so far. I have however stumbled upon a problem which I can't seem to figure out. I am trying to make a program that creates a child

Re: Reading input from piped stdin.

2014-02-14 Thread nazriel
On Friday, 14 February 2014 at 19:05:02 UTC, Thomas wrote: I'm new to D, and I find it quite enjoyable so far. I have however stumbled upon a problem which I can't seem to figure out. I am trying to make a program that creates a child process, writes something to the child process stdin and read

Re: Reading input from piped stdin.

2014-02-14 Thread Adam D. Ruppe
Just a quick look, but I betcha it has to do with buffering. After writing the line to the pipe, call the flush() method on the output pipe and see what happens there. (Pipes buffer differently than regular output so this is a common mixup, especially with IDEs which communicate with stdout vi