[Gambas-user] Pipe EOF

Admin admin at allunix.ru
Wed Dec 25 19:42:02 CET 2019


25.12.2019 22:04, T Lee Davidson пишет:
> On 12/25/19 2:17 AM, Admin wrote:
>> So, I wonder if closing a pipe does not actually send EOF to the pipe 
>> despite stating this exact behaviour in documentation, or am I 
>> missing somethig?
>
> I am not seeing where the documentation states that closing a pipe 
> sends EOF. There is mention that executing CLOSE on a _Process_ handle 
> sends Ctrl-D, but not on a Stream. Did I miss it?
>
>
Well... I could have sworn I've seen it yesterday, now I don't, so mabe 
you are right. Also I now see that there's Process.Closeinput method, 
that states "This replaces the old behaviour of previous Gambas version 
when closing the stream with theCLOSE 
<http://gambaswiki.org/wiki/lang/close>instruction." so that you can't 
just CLOSE a process handle to send Ctrl-D to a Stream. Maybe I should 
try this on my Shell "tar ...". Just not yet sure how.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20191226/20c6374b/attachment.html>


More information about the User mailing list