David Starks-Browning wrote:
This sounds like a well-known and often discussed topic related to
text vs. binary file processing in cygwin. Have you searched the
cygwin archives and checked with them on their list?
Well, may be the read behavior has been discussed many times on cygwin, may be
some are begging so that read feed the maximum bytes b4 returning, but, as far
as i can think, there is nothing in my manual page (HPUX's one) that can make
one think read always feed the maximum bytes to the buffer. It just says : read
returns the number of byte read (up to the maximum specified in the 3rd
argument), and -1 if there's a problem.
So, i still consider that exiting when read didn't feed the maximum bytes is a
bad behavior, and even a bug, since it cause all the mails left to be lost.