I just found a problem where using the puts command
does not flush its output.
It works fine in the Jacl Shell, because the Shell
automatically flushes the stdout output (in putLine method).
However, when using puts command from an Interp,
the output is not flushed!
I have attached a fix for PutsCmd.java to flush
the channel after writing the newline.
I wonder if the Channel should automatically flush itself
when it sees a new line?
ie. if I do "puts -nonewline "hello!\n"
The output is not flushed.
--
Shawn Boyce
QCOM, Inc.
Quality Software is Our Business
http://www.qcominc.com
|