For what it's worth, I'm not running xterm (I don't even have XWindows installed), and I'm seeing most of the same symptoms.

Here's the script I use to launch a cygwin shell, cygwin.bat:
@echo off

chdir C:\cygwin\bin

bash --login -i
And I get similar results as Weiqi:

[<type ''>, <type ''>, <type ''>, <type ''>, <type 'java.lang.Object'>, <type 'object'>]
Don't know if that helps at all.


Nicholas Riley wrote:
In article <>,
 Philip Jenvey <> wrote:

Nick, any idea why isatty fails here? Incorporating Weiqi's changes is  
no problem, but having to workaround isatty failing with JYTHON_OPTS="- 
i" sucks.

It fails because Weiqi's using a Cygwin *xterm*, rather than Cygwin 
inside cmd.exe.  You can see the differences here:


Note that CPython fails worse than Jython when run in a Cygwin xterm (or 
rxvt in my case); jython -i without Weiqi's changes also doesn't work 
correctly, but python -i does.

terma | software labs

Moss Prescott
303.417.1718 x207