Let's suppose I am connecting to telnet server, where bash is running.
I am executing command
cat > /tmp/qqq; typing some contents of a file and finally sending 0x0a 0x04 which meant EOF.
The question is: how and where that EOF would be processed? Will it be transmitted as is to the cat application, maybe bash will close cat's STDIN upon receiving of EOF, or it is somehow processed by some driver before shell?
PS. original problem: I wrote java application doing described thing. It connects to telnet, runs cat, sends data finished with EOF. But when telnet account is operating under tcsh - EOF is eaten somewhere and cat continues to expect data after EOF. If sh is running on telnet account - cat command stopping after EOF. More details about that application is here.