Mail Archives: cygwin/1998/04/10/10:54:52
This is a multi-part message in MIME format.
--------------B250DF120A36527998CB7EDF
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I have a little Java program that reads from System.in (stdin)
and writes to System.out (stdout), and it works fine in a DOS
window but in a bash window it never gets the input. Everything
I type ends up being delivered to bash after the java program
exits. This does not happen with real bash under Linux.
--
Paul Tomblin or an amazingly lifelike simulation.
ptomblin AT bluelobster DOT com
Blue Lobster Software http://www.bluelobster.com/
"Wonderful lobster, the Australian Blue. Beautiful carapace."
--------------B250DF120A36527998CB7EDF
Content-Type: application/x-unknown-content-type-java_auto_file; name="ReadStdinNoThread.java"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="ReadStdinNoThread.java"
LyogdmltOnNldCBzaSBzdz00IHRzPTQ6ICovDQppbXBvcnQgamF2YS5pby4qOw0KaW1wb3J0
IGphdmEubmV0Lio7DQppbXBvcnQgamF2YS51dGlsLio7DQoNCi8qKg0KICogYSBzaW1wbGUg
U1NMIHNlcnZlciwgd2hpY2ggY29udGludWFsbHkgYWNjZXB0cyBjb25uZWN0aW9ucyBhbmQg
cmVhZHMgYSBzaW5nbGUgYnl0ZSBvZiB0aGVtDQogKi8NCnB1YmxpYyBjbGFzcyBSZWFkU3Rk
aW5Ob1RocmVhZA0Kew0KCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3Yp
IHRocm93cyBUaHJvd2FibGUNCgl7DQoJCUJ1ZmZlcmVkUmVhZGVyCV9pcyA9IG5ldyBCdWZm
ZXJlZFJlYWRlcihuZXcNCgkJCQkJCQkJSW5wdXRTdHJlYW1SZWFkZXIoU3lzdGVtLmluKSk7
DQoJCVByaW50V3JpdGVyCQlfcHMgPSBuZXcgUHJpbnRXcml0ZXIoU3lzdGVtLm91dCwgdHJ1
ZSk7DQoNCgkJX3BzLnByaW50bG4oInJlYWR5IGZvciBpbnB1dDoiKTsNCgkJdHJ5DQoJCXsN
CgkJCXdoaWxlICh0cnVlKQ0KCQkJew0KCQkJCVN0cmluZyBpbiA9IF9pcy5yZWFkTGluZSgp
Ow0KCQkJCWlmIChpbiAhPSBudWxsKQ0KCQkJCXsNCgkJCQkJaWYgKGluLmVxdWFscygiLiIp
KQ0KCQkJCQkJYnJlYWs7DQoJCQkJCV9wcy5wcmludGxuKGluKTsNCgkJCQl9DQoJCQl9DQoJ
CX0NCgkJY2F0Y2ggKElPRXhjZXB0aW9uIGUpDQoJCXsNCgkJfQ0KCQlfcHMucHJpbnRsbigi
ZXhpdGluZyIpOw0KCX0NCn0NCg==
--------------B250DF120A36527998CB7EDF--
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -