Bah! This is a bug in Unix, IMHO. We would consider it a bug if a
buffered output file refused to dump it's output buffer upon exit. It
seems to me to be just as much a bug if a buffered input file refuses to
push back its unused input on exit. Unix should have provided a mechanism
to permit this...
Steve
Err, why is
buffering data in the process a sin? (Or was this just a
humourous aside?)
Process A spawns process B, which reads stdin with buffering. B gets
all it deserves from stdin and exits. What's left in the buffer,
intehded for A, is lost. Sinful.
_______________________________________________
TUHS mailing list
TUHS(a)minnie.tuhs.org
https://minnie.tuhs.org/mailman/listinfo/tuhs