[fpc-pascal] Redirecting input to a child process
anton.txt at gmail.com
Sun May 8 19:17:58 CEST 2011
> If you run 'more' in a cmd window you'll notice that
> 'more' echoes the input but only sends to stdout when a
> return is entered. I modified the program to send
> 'Anton'#10 and the program reads back 'Anton'#10 from
Thank you, Ludo, this is great!
But why doesn't the process finish? I thought that the clos-
ing of the write end of the StdIn pipe handle should cause a
EOF to be 'seen' at the read end, but this does not happen.
Maybe these's some explicit way to signal end of input?
More information about the fpc-pascal